diff options
| author | Jeff Garzik <[email protected]> | 2011-07-12 20:22:38 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2011-07-12 20:22:38 -0700 |
| commit | 4ea952d5c03e18b9ddd0e97f4434cd9092358dab (patch) | |
| tree | f0f627dc9188eb11b02bed39ca66287ccd9634af /src/net.cpp | |
| parent | Update makefile.linux-mingw to work with crypter and UPnP fix. (diff) | |
| parent | fix warning: unused function 'SigIllHandlerSSE2' [-Wunused-function] (diff) | |
| download | discoin-4ea952d5c03e18b9ddd0e97f4434cd9092358dab.tar.xz discoin-4ea952d5c03e18b9ddd0e97f4434cd9092358dab.zip | |
Merge pull request #399 from muggenhor/warning-fixes
Warning fixes
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 0d3348da7..ac5a2834b 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -831,7 +831,7 @@ void ThreadSocketHandler2(void* parg) { BOOST_FOREACH(CNode* pnode, vNodes) { - if (pnode->hSocket == INVALID_SOCKET || pnode->hSocket < 0) + if (pnode->hSocket == INVALID_SOCKET) continue; FD_SET(pnode->hSocket, &fdsetRecv); FD_SET(pnode->hSocket, &fdsetError); @@ -1700,7 +1700,7 @@ void StartNode(void* parg) printf("Error: CreateThread(ThreadIRCSeed) failed\n"); // Send and receive from sockets, accept connections - pthread_t hThreadSocketHandler = CreateThread(ThreadSocketHandler, NULL, true); + CreateThread(ThreadSocketHandler, NULL, true); // Initiate outbound connections if (!CreateThread(ThreadOpenConnections, NULL)) |