Got fooled by operator precedence - it's now working as expected.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20658 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
87001e059c
commit
2a17be44d7
@ -403,7 +403,7 @@ NetworkStatusView::_DetermineInterfaceStatus(const char* name)
|
||||
|
||||
if (flags & IFF_CONFIGURING)
|
||||
status = kStatusConnecting;
|
||||
else if (flags & (IFF_UP | IFF_LINK) == IFF_UP | IFF_LINK)
|
||||
else if ((flags & (IFF_UP | IFF_LINK)) == (IFF_UP | IFF_LINK))
|
||||
status = kStatusReady;
|
||||
|
||||
return status;
|
||||
|
Loading…
Reference in New Issue
Block a user