aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-11-14 16:07:40 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2012-11-14 16:13:18 +0100
commit29e214aaf550dcbf84885a73304f048292089254 (patch)
treee41ac5cc46ec191cf3bfae2e8d110c17b74b2e4c /src/init.cpp
parentf2b12807d04e981d0a252cbda6ba80c87a809d6e (diff)
downloadbitcoin-29e214aaf550dcbf84885a73304f048292089254.tar.xz
make enum and parameter used in Bind() unsigned
- it's good practise to use unsigned int for enum flags, so change this one, as I introduced this for Bind()
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp
index f6df4055fc..06f7359f80 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -28,9 +28,9 @@ CClientUIInterface uiInterface;
// Used to pass flags to the Bind() function
enum BindFlags {
- BF_NONE = 0,
- BF_EXPLICIT = 1,
- BF_REPORT_ERROR = 2
+ BF_NONE = 0,
+ BF_EXPLICIT = (1U << 0),
+ BF_REPORT_ERROR = (1U << 1)
};
//////////////////////////////////////////////////////////////////////////////
@@ -220,7 +220,7 @@ bool static InitWarning(const std::string &str)
}
-bool static Bind(const CService &addr, int flags) {
+bool static Bind(const CService &addr, unsigned int flags) {
if (!(flags & BF_EXPLICIT) && IsLimited(addr))
return false;
std::string strError;