Browse Source

Merge pull request #1171 from Diapolo/fix_compiler_warn

fix 2 compiler warnings
0.8
Jeff Garzik 13 years ago
parent
commit
ca97bde8ff
  1. 4
      src/net.cpp
  2. 2
      src/util.cpp

4
src/net.cpp

@ -1585,13 +1585,17 @@ void StartNode(void* parg) @@ -1585,13 +1585,17 @@ void StartNode(void* parg)
{
vector<CNetAddr> vaddr;
if (LookupHost(pszHostName, vaddr))
{
BOOST_FOREACH (const CNetAddr &addr, vaddr)
{
if (!addr.IsLocal())
{
addrLocalHost.SetIP(addr);
break;
}
}
}
}
#else
// Get local host ip
struct ifaddrs* myaddrs;

2
src/util.cpp

@ -252,7 +252,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...) @@ -252,7 +252,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
*pend = '\0';
char* p1 = pszBuffer;
char* p2;
while (p2 = strchr(p1, '\n'))
while ((p2 = strchr(p1, '\n')))
{
p2++;
char c = *p2;

Loading…
Cancel
Save