diff options
| author | Pieter Wuille <[email protected]> | 2012-11-15 15:37:00 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-11-15 15:37:00 -0800 |
| commit | bb76267cc409c6f0c2378e62172072baaebc4d78 (patch) | |
| tree | f56574d3ee1200877c618796c47181a444c1ae26 /src/init.cpp | |
| parent | Merge pull request #2008 from sipa/scriptflags (diff) | |
| parent | make enum and parameter used in Bind() unsigned (diff) | |
| download | discoin-bb76267cc409c6f0c2378e62172072baaebc4d78.tar.xz discoin-bb76267cc409c6f0c2378e62172072baaebc4d78.zip | |
Merge pull request #2010 from Diapolo/bind_unsigned
make enum and parameter used in Bind() unsigned
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp index f6df4055f..06f7359f8 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; |