refactor: Use uint16_t instead of unsigned short

removed trailing whitespace to make linter happy
This commit is contained in:
Aaron Hook
2019-12-29 13:04:02 -08:00
committed by Rene Pickhardt
parent 8ef15e8a86
commit 1cabbddbca
9 changed files with 28 additions and 22 deletions

View File

@@ -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;
}
}