ifconfig/Network: gcc4 build fix.
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
#include "MediaTypes.h"
|
#include "MediaTypes.h"
|
||||||
|
|
||||||
#include <net/if_media.h>
|
#include <net/if_media.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
struct media_type {
|
struct media_type {
|
||||||
|
|||||||
@@ -223,12 +223,10 @@ InterfaceAddressView::_UpdateFields()
|
|||||||
int32 index = fInterface.FindFirstAddress(fFamily);
|
int32 index = fInterface.FindFirstAddress(fFamily);
|
||||||
if (index >= 0)
|
if (index >= 0)
|
||||||
status = fInterface.GetAddressAt(index, address);
|
status = fInterface.GetAddressAt(index, address);
|
||||||
if (index < 0 || status != B_OK
|
if (!autoConfigure && (index < 0 || status != B_OK
|
||||||
|| address.Address().IsEmpty() && !autoConfigure) {
|
|| address.Address().IsEmpty())) {
|
||||||
if (!autoConfigure) {
|
_SetModeField(kModeDisabled);
|
||||||
_SetModeField(kModeDisabled);
|
return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (autoConfigure)
|
if (autoConfigure)
|
||||||
|
|||||||
Reference in New Issue
Block a user