Browse Source

fix compiler warning "suggest explicit braces to avoid ambiguous "else"

[-Wparentheses]" in net.cpp
0.8
Philip Kaufmann 13 years ago
parent
commit
f8e4d43be7
  1. 4
      src/net.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;

Loading…
Cancel
Save