git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
be8651d
)
fix compiler warning "suggest explicit braces to avoid ambiguous "else"
author
Philip Kaufmann
<phil.kaufmann@t-online.de>
Mon, 30 Apr 2012 23:44:59 +0000 (
01:44
+0200)
committer
Philip Kaufmann
<phil.kaufmann@t-online.de>
Tue, 1 May 2012 09:40:08 +0000 (11:40 +0200)
[-Wparentheses]" in net.cpp
src/net.cpp
patch
|
blob
|
history
diff --git
a/src/net.cpp
b/src/net.cpp
index
d218dcf
..
92b4a31
100644
(file)
--- a/
src/net.cpp
+++ b/
src/net.cpp
@@
-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