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

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