summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/shim-eth-llc/main.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ipcpd/shim-eth-llc/main.c b/src/ipcpd/shim-eth-llc/main.c
index 9a9e11b5..5ac3bb6f 100644
--- a/src/ipcpd/shim-eth-llc/main.c
+++ b/src/ipcpd/shim-eth-llc/main.c
@@ -745,18 +745,16 @@ static int eth_llc_ipcp_bootstrap(const struct ipcp_config * conf)
struct ifreq ifr;
#ifdef HAVE_NETMAP
char ifn[IFNAMSIZ];
- #ifndef __FreeBSD__
- int skfd;
- #endif
#else
struct timeval tv = {0, EVENT_WAIT_TIMEOUT * 1000};
- #ifdef __FreeBSD__
+#endif /* HAVE_NETMAP */
+
+#ifdef __FreeBSD__
struct ifaddrs * ifaddr;
struct ifaddrs * ifa;
- #endif
+#else
int skfd;
-#endif /* HAVE_NETMAP */
-
+#endif
assert(conf);
assert(conf->type == THIS_TYPE);