i hate c++ strings

This commit is contained in:
jl777
2016-09-14 05:32:48 -03:00
parent 891b2e16b6
commit f6b8d87ed4
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
#include <stdint.h>
int32_t komodo_checkmsg(char *ipaddr,uint8_t *data,int32_t datalen)
int32_t komodo_checkmsg(int32_t peerid,uint8_t *data,int32_t datalen)
{
return(0);
}

View File

@@ -5077,7 +5077,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
}
}
else if (strCommand == "komodo")
komodo_checkmsg(pfrom->addr.ToString(),vRecv.begin(),vRecv.in_avail());
komodo_checkmsg(pfrom->addr.id,vRecv.begin(),vRecv.in_avail());
else
{
LogPrint("net", "Unknown \"%s\" from peer=%d\n", SanitizeString(strCommand),pfrom->id);