mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 21:02:38 -03:00
Merge pull request #1171 from Diapolo/fix_compiler_warn
fix 2 compiler warnings
This commit is contained in:
commit
ca97bde8ff
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue