mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
refactor: Use uint16_t instead of unsigned short
removed trailing whitespace to make linter happy
This commit is contained in:
committed by
Rene Pickhardt
parent
8ef15e8a86
commit
1cabbddbca
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user