diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 418774fad..ac0ca7837 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -598,7 +598,7 @@ void komodo_passport_iteration() { if ( (infoobj= cJSON_Parse(retstr)) != 0 ) { - if ( (result= jobj(infoobj,"result")) != 0 ) + if ( (result= jobj(infoobj,(char *)"result")) != 0 ) { blocks = juint(infoobj,(char *)"blocks"); longest = juint(infoobj,(char *)"longestchain"); diff --git a/src/komodo_utils.h b/src/komodo_utils.h index 82db20e39..75fdbfa69 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1361,6 +1361,8 @@ int32_t komodo_userpass(char *userpass,char *symbol) userpass[0] = 0; sprintf(confname,"%s.conf",symbol); komodo_statefname(fname,symbol,confname); + if ( strcmp(symbol,"KMD") == 0 ) + printf("conf.(%s)\n",fname); if ( (fp= fopen(fname,"rb")) != 0 ) { komodo_userpass(username,password,fp); diff --git a/src/main.cpp b/src/main.cpp index 822fc76ce..0e1b84341 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -535,7 +535,7 @@ CBlockIndex* FindForkInGlobalIndex(const CChain& chain, const CBlockLocator& loc // Find the first block the caller has in the main chain BOOST_FOREACH(const uint256& hash, locator.vHave) { BlockMap::iterator mi = mapBlockIndex.find(hash); - if (mi != 0 && mi != mapBlockIndex.end()) + if (mi != mapBlockIndex.end()) { CBlockIndex* pindex = (*mi).second; if (pindex != 0 && chain.Contains(pindex))