mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 15:27:57 +00:00
Merge pull request #2010 from Diapolo/bind_unsigned
make enum and parameter used in Bind() unsigned
This commit is contained in:
commit
bb76267cc4
@ -29,8 +29,8 @@ CClientUIInterface uiInterface;
|
||||
// Used to pass flags to the Bind() function
|
||||
enum BindFlags {
|
||||
BF_NONE = 0,
|
||||
BF_EXPLICIT = 1,
|
||||
BF_REPORT_ERROR = 2
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user