mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
refactor: Use uint16_t instead of unsigned short
removed trailing whitespace to make linter happy
This commit is contained in:
parent
8ef15e8a86
commit
1cabbddbca
9 changed files with 28 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue