mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
Merge pull request #1171 from Diapolo/fix_compiler_warn
fix 2 compiler warnings
This commit is contained in:
commit
ca97bde8ff
@ -1585,12 +1585,16 @@ void StartNode(void* parg)
|
|||||||
{
|
{
|
||||||
vector<CNetAddr> vaddr;
|
vector<CNetAddr> vaddr;
|
||||||
if (LookupHost(pszHostName, vaddr))
|
if (LookupHost(pszHostName, vaddr))
|
||||||
|
{
|
||||||
BOOST_FOREACH (const CNetAddr &addr, vaddr)
|
BOOST_FOREACH (const CNetAddr &addr, vaddr)
|
||||||
|
{
|
||||||
if (!addr.IsLocal())
|
if (!addr.IsLocal())
|
||||||
{
|
{
|
||||||
addrLocalHost.SetIP(addr);
|
addrLocalHost.SetIP(addr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// Get local host ip
|
// Get local host ip
|
||||||
|
@ -252,7 +252,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
|
|||||||
*pend = '\0';
|
*pend = '\0';
|
||||||
char* p1 = pszBuffer;
|
char* p1 = pszBuffer;
|
||||||
char* p2;
|
char* p2;
|
||||||
while (p2 = strchr(p1, '\n'))
|
while ((p2 = strchr(p1, '\n')))
|
||||||
{
|
{
|
||||||
p2++;
|
p2++;
|
||||||
char c = *p2;
|
char c = *p2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user