This commit is contained in:
jl777
2016-11-20 15:14:36 -03:00
parent ffbc2f0037
commit 8a7c9241b6
2 changed files with 5 additions and 5 deletions

View File

@@ -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() )

View File

@@ -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]);