Small cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42799 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2011-10-03 18:36:00 +00:00
parent 3c920dad10
commit 2348de0bbc
+6 -4
View File
@@ -468,19 +468,21 @@ NetServer::_ConfigureInterface(BMessage& message)
bool startAutoConfig = false;
int32 flags;
if (message.FindInt32("flags", &flags) < B_OK)
if (message.FindInt32("flags", &flags) != B_OK)
flags = IFF_UP;
bool autoConfigured;
if (message.FindBool("auto_configured", &autoConfigured) == B_OK && autoConfigured)
if (message.FindBool("auto_configured", &autoConfigured) == B_OK
&& autoConfigured) {
flags |= IFF_AUTO_CONFIGURED;
}
int32 mtu;
if (message.FindInt32("mtu", &mtu) < B_OK)
if (message.FindInt32("mtu", &mtu) != B_OK)
mtu = -1;
int32 metric;
if (message.FindInt32("metric", &metric) < B_OK)
if (message.FindInt32("metric", &metric) != B_OK)
metric = -1;
BNetworkInterface interface(name);