diff options
author | kn <kn@cvs.openbsd.org> | 2021-03-20 16:46:04 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2021-03-20 16:46:04 +0000 |
commit | 29d581f499a3b727622da4e42b511e2d654eac66 (patch) | |
tree | 8c5e013b1097d8c478f9607f3e6e9312ed0b04c1 /sbin/slaacd/frontend.c | |
parent | b5f4e1d9526b0aeb382e327ece7bbe22e6cb8aa8 (diff) |
Fix SMALL build when done from sbin/slaacd
distrib/special/slaccd is the actual SMALL user but having it build from here
is useful, too; in fact, it showed some more unused variables under SMALL.
OK florian
Diffstat (limited to 'sbin/slaacd/frontend.c')
-rw-r--r-- | sbin/slaacd/frontend.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/slaacd/frontend.c b/sbin/slaacd/frontend.c index 1a0c596914d..47dc80b83a3 100644 --- a/sbin/slaacd/frontend.c +++ b/sbin/slaacd/frontend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frontend.c,v 1.52 2021/03/11 19:53:40 florian Exp $ */ +/* $OpenBSD: frontend.c,v 1.53 2021/03/20 16:46:03 kn Exp $ */ /* * Copyright (c) 2017 Florian Obser <florian@openbsd.org> @@ -954,7 +954,10 @@ icmp6_receive(int fd, short events, void *arg) struct cmsghdr *cm; ssize_t len; int if_index = 0, *hlimp = NULL; - char ntopbuf[INET6_ADDRSTRLEN], ifnamebuf[IFNAMSIZ]; + char ntopbuf[INET6_ADDRSTRLEN]; +#ifndef SMALL + char ifnamebuf[IFNAMSIZ]; +#endif /* SMALL */ icmp6ev = arg; if ((len = recvmsg(fd, &icmp6ev->rcvmhdr, 0)) == -1) { |