]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
BSD: Remove silly guards
authorRoy Marples <roy@marples.name>
Wed, 23 Jan 2019 13:05:12 +0000 (13:05 +0000)
committerRoy Marples <roy@marples.name>
Wed, 23 Jan 2019 13:05:12 +0000 (13:05 +0000)
src/if-bsd.c

index e4c95765b509d6fcffa763a5707b59515b733e6c..a533862449c49dba33f3028a50ff0ea55a3a111b 100644 (file)
@@ -197,7 +197,6 @@ if_closesockets_os(struct dhcpcd_ctx *ctx)
                close(priv->pf_inet6_fd);
 }
 
-#if defined(INET) || defined(INET6)
 static void
 if_linkaddr(struct sockaddr_dl *sdl, const struct interface *ifp)
 {
@@ -208,7 +207,6 @@ if_linkaddr(struct sockaddr_dl *sdl, const struct interface *ifp)
        sdl->sdl_nlen = sdl->sdl_alen = sdl->sdl_slen = 0;
        sdl->sdl_index = (unsigned short)ifp->index;
 }
-#endif
 
 #if defined(SIOCG80211NWID) || defined(SIOCGETVLAN)
 static int if_direct_ioctl(int s, const char *ifname,
@@ -359,7 +357,6 @@ get_addrs(int type, const void *data, const struct sockaddr **sa)
        }
 }
 
-#if defined(INET) || defined(INET6)
 static struct interface *
 if_findsdl(struct dhcpcd_ctx *ctx, const struct sockaddr_dl *sdl)
 {
@@ -688,8 +685,6 @@ if_initrt(struct dhcpcd_ctx *ctx, int af)
        return 0;
 }
 
-#endif
-
 #ifdef INET
 int
 if_address(unsigned char cmd, const struct ipv4_addr *ia)