ifconfig/Network: gcc4 build fix.

This commit is contained in:
Axel Dörfler
2015-03-27 15:26:51 +01:00
parent 5f03af766a
commit 49b69c86d3
2 changed files with 5 additions and 6 deletions
+1
View File
@@ -12,6 +12,7 @@
#include "MediaTypes.h"
#include <net/if_media.h>
#include <string.h>
struct media_type {
@@ -223,12 +223,10 @@ InterfaceAddressView::_UpdateFields()
int32 index = fInterface.FindFirstAddress(fFamily);
if (index >= 0)
status = fInterface.GetAddressAt(index, address);
if (index < 0 || status != B_OK
|| address.Address().IsEmpty() && !autoConfigure) {
if (!autoConfigure) {
_SetModeField(kModeDisabled);
return;
}
if (!autoConfigure && (index < 0 || status != B_OK
|| address.Address().IsEmpty())) {
_SetModeField(kModeDisabled);
return;
}
if (autoConfigure)