aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorAaron Hook <ahook@protonmail.com>2019-12-29 13:04:02 -0800
committerRene Pickhardt <r.pickhardt@gmail.com>2020-06-22 12:12:22 +0200
commit1cabbddbca615b26aa4510c75f459c28d6fe0afd (patch)
tree04459232e1ee90d4e5a2ba8f625c903177beeff3 /src/net.cpp
parent8ef15e8a86038225afef2487ca23abc10ca5dffa (diff)
downloadbitcoin-1cabbddbca615b26aa4510c75f459c28d6fe0afd.tar.xz
refactor: Use uint16_t instead of unsigned short
removed trailing whitespace to make linter happy
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 371fbeed59..afde8a894b 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -42,6 +42,7 @@
static_assert(MINIUPNPC_API_VERSION >= 10, "miniUPnPc API version >= 10 assumed");
#endif
+#include <cstdint>
#include <unordered_map>
#include <math.h>
@@ -110,9 +111,9 @@ void CConnman::AddOneShot(const std::string& strDest)
vOneShots.push_back(strDest);
}
-unsigned short GetListenPort()
+uint16_t GetListenPort()
{
- return (unsigned short)(gArgs.GetArg("-port", Params().GetDefaultPort()));
+ return (uint16_t)(gArgs.GetArg("-port", Params().GetDefaultPort()));
}
// find 'best' local address for a particular peer