diff options
| author | Gregory Maxwell <[email protected]> | 2012-05-09 04:07:24 -0700 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2012-05-09 04:07:24 -0700 |
| commit | 2e767410b83a4468bf83be9c39f99cf0325c7739 (patch) | |
| tree | c7777e11f9360dc415a19a7fcb04daa1e945976b /src/netbase.cpp | |
| parent | Merge pull request #1235 from Diapolo/translation_en (diff) | |
| parent | Clean up warnings (diff) | |
| download | discoin-2e767410b83a4468bf83be9c39f99cf0325c7739.tar.xz discoin-2e767410b83a4468bf83be9c39f99cf0325c7739.zip | |
Merge pull request #1230 from sipa/warnings
Clean up warnings
Diffstat (limited to 'src/netbase.cpp')
| -rw-r--r-- | src/netbase.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index 4fe3fb61d..48709dc5c 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -208,9 +208,9 @@ bool static Socks5(string strDest, int port, SOCKET& hSocket) } char pszSocks5Init[] = "\5\1\0"; char *pszSocks5 = pszSocks5Init; - int nSize = sizeof(pszSocks5Init); + ssize_t nSize = sizeof(pszSocks5Init); - int ret = send(hSocket, pszSocks5, nSize, MSG_NOSIGNAL); + ssize_t ret = send(hSocket, pszSocks5, nSize, MSG_NOSIGNAL); if (ret != nSize) { closesocket(hSocket); @@ -234,7 +234,7 @@ bool static Socks5(string strDest, int port, SOCKET& hSocket) strSocks5 += static_cast<char>((port >> 8) & 0xFF); strSocks5 += static_cast<char>((port >> 0) & 0xFF); ret = send(hSocket, strSocks5.c_str(), strSocks5.size(), MSG_NOSIGNAL); - if (ret != strSocks5.size()) + if (ret != (ssize_t)strSocks5.size()) { closesocket(hSocket); return error("Error sending to proxy"); |