fix compiler warning "suggest explicit braces to avoid ambiguous "else"
authorPhilip Kaufmann <phil.kaufmann@t-online.de>
Mon, 30 Apr 2012 23:44:59 +0000 (01:44 +0200)
committerPhilip Kaufmann <phil.kaufmann@t-online.de>
Tue, 1 May 2012 09:40:08 +0000 (11:40 +0200)
[-Wparentheses]" in net.cpp

src/net.cpp

index d218dcf..92b4a31 100644 (file)
@@ -1585,12 +1585,16 @@ 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