diff options
| author | Aaron Hook <[email protected]> | 2019-12-29 13:04:02 -0800 |
|---|---|---|
| committer | Rene Pickhardt <[email protected]> | 2020-06-22 12:12:22 +0200 |
| commit | 1cabbddbca615b26aa4510c75f459c28d6fe0afd (patch) | |
| tree | 04459232e1ee90d4e5a2ba8f625c903177beeff3 /src/netbase.cpp | |
| parent | Merge #19198: test: Check that peers with forcerelay permission are not asked... (diff) | |
| download | discoin-1cabbddbca615b26aa4510c75f459c28d6fe0afd.tar.xz discoin-1cabbddbca615b26aa4510c75f459c28d6fe0afd.zip | |
refactor: Use uint16_t instead of unsigned short
removed trailing whitespace to make linter happy
Diffstat (limited to 'src/netbase.cpp')
| -rw-r--r-- | src/netbase.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index 9fe03c6a2..3a3b5f3e6 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -12,6 +12,7 @@ #include <util/system.h> #include <atomic> +#include <cstdint> #ifndef WIN32 #include <fcntl.h> @@ -798,11 +799,11 @@ bool ConnectThroughProxy(const proxyType &proxy, const std::string& strDest, int ProxyCredentials random_auth; static std::atomic_int counter(0); random_auth.username = random_auth.password = strprintf("%i", counter++); - if (!Socks5(strDest, (unsigned short)port, &random_auth, hSocket)) { + if (!Socks5(strDest, (uint16_t)port, &random_auth, hSocket)) { return false; } } else { - if (!Socks5(strDest, (unsigned short)port, 0, hSocket)) { + if (!Socks5(strDest, (uint16_t)port, 0, hSocket)) { return false; } } |