summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Bürk <admin@airblader.de>2018-03-27 09:07:53 +0200
committerGitHub <noreply@github.com>2018-03-27 09:07:53 +0200
commit3aec438a5137e04c6e7952d3f9afd237002d1fda (patch)
treed076dc5e842cb2cd269a2fed119b7f7bf02495e6
parent2cb0ffa01aa684f8664ba38fa9ef0df90eed2385 (diff)
parent83d0b621c0b7ea0ffcf793e7fb4e0decdef63f3b (diff)
Merge pull request #243 from jasperla/fei_error
Remove overly aggressive #error
-rw-r--r--src/first_network_device.c5
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) {