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:
Axel Dörfler 2007-04-11 18:52:53 +00:00
parent 87001e059c
commit 2a17be44d7

View File

@ -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;