git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
50d7104
)
Merge pull request #1171 from Diapolo/fix_compiler_warn
author
Jeff Garzik
<jgarzik@exmulti.com>
Tue, 1 May 2012 22:02:41 +0000 (15:02 -0700)
committer
Jeff Garzik
<jgarzik@exmulti.com>
Tue, 1 May 2012 22:02:41 +0000 (15:02 -0700)
fix 2 compiler warnings
src/net.cpp
patch
|
blob
|
history
src/util.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
diff --git
a/src/util.cpp
b/src/util.cpp
index
cd3d3b9
..
3569f22
100644
(file)
--- a/
src/util.cpp
+++ b/
src/util.cpp
@@
-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;