diff options
author | Jasper Lievisse Adriaanse <j@jasper.la> | 2017-09-04 13:24:54 +0200 |
---|---|---|
committer | Jasper Lievisse Adriaanse <j@jasper.la> | 2017-09-04 13:30:21 +0200 |
commit | 83d0b621c0b7ea0ffcf793e7fb4e0decdef63f3b (patch) | |
tree | 0949e88de67355d260e7ca5726833a8a16237554 /src/first_network_device.c | |
parent | 884e4da6730a31fc7a5ef892fb9cb061baaf5f6c (diff) |
Remove overly aggressive #error
Change-Id: I8c20606d386d713cac51b620d1fcdb479a3622fe
Diffstat (limited to 'src/first_network_device.c')
-rw-r--r-- | src/first_network_device.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/first_network_device.c b/src/first_network_device.c index 3f34cf2..1ed50a2 100644 --- a/src/first_network_device.c +++ b/src/first_network_device.c @@ -82,8 +82,6 @@ static net_type_t iface_type(const char *ifname) { if (strcmp(devtype, "wwan") == 0) return NET_TYPE_OTHER; - - return NET_TYPE_OTHER; #elif __OpenBSD__ /* *First determine if the device is a wireless device by trying two ioctl(2) @@ -126,9 +124,8 @@ static net_type_t iface_type(const char *ifname) { close(s); return NET_TYPE_ETHERNET; } -#else -#error Missing implementation to determine interface type. #endif + return NET_TYPE_OTHER; } const char *first_eth_interface(const net_type_t type) { |