diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 163af2e97..ae4fa58be 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -581,7 +581,7 @@ uint64_t komodo_accrued_interest(int32_t *txheightp,uint32_t *locktimep,uint256 int32_t komodo_isrealtime(int32_t *kmdheightp) { struct komodo_state *sp; - if ( (sp= komodo_stateptrget("KMD")) != 0 ) + if ( (sp= komodo_stateptrget((char *)"KMD")) != 0 ) *kmdheightp = sp->CURRENT_HEIGHT; else *kmdheightp = 0; if ( *kmdheightp != 0 && *kmdheightp == (int32_t)komodo_longestchain() ) diff --git a/src/komodo_utils.h b/src/komodo_utils.h index c2b4f4b4f..d77d8ed72 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1485,20 +1485,20 @@ void komodo_nameset(char *symbol,char *dest,char *source) { if ( source[0] == 0 ) { - strcpy(symbol,"KMD"); - strcpy(dest,"BTC"); + strcpy(symbol,(char *)"KMD"); + strcpy(dest,(char *)"BTC"); } else { strcpy(symbol,source); - strcpy(dest,"KMD"); + strcpy(dest,(char *)"KMD"); } } struct komodo_state *komodo_stateptrget(char *base) { int32_t baseid; - if ( base == 0 || base[0] == 0 || strcmp(base,"KMD") == 0 ) + if ( base == 0 || base[0] == 0 || strcmp(base,(char *)"KMD") == 0 ) return(&KOMODO_STATES[33]); else if ( (baseid= komodo_baseid(base)) >= 0 ) return(&KOMODO_STATES[baseid+1]);