From 18ccbb5b360cdf8706369b586d3d8e66fedde364 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Mon, 16 Dec 2024 10:05:14 +0100 Subject: [PATCH] use elif --- src/net/net.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/net/net.c b/src/net/net.c index 3838199c1..29af3dacd 100644 --- a/src/net/net.c +++ b/src/net/net.c @@ -131,8 +131,7 @@ int net_if_apply(net_ifaddr_h *ifh, void *arg) { #ifdef LINUX return net_netlink_addrs(ifh, arg); -#endif -#ifdef HAVE_GETIFADDRS +#elif HAVE_GETIFADDRS return net_getifaddrs(ifh, arg); #else return net_if_list(ifh, arg);