Remove unused variable in an effort to make this -fno-common clean.
authorflorian <florian@openbsd.org>
Mon, 18 Jan 2021 15:20:28 +0000 (15:20 +0000)
committerflorian <florian@openbsd.org>
Mon, 18 Jan 2021 15:20:28 +0000 (15:20 +0000)
usr.sbin/rad/frontend.c

index c66ebae..c883e22 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: frontend.c,v 1.35 2020/12/29 19:47:16 benno Exp $     */
+/*     $OpenBSD: frontend.c,v 1.36 2021/01/18 15:20:28 florian Exp $   */
 
 /*
  * Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -156,7 +156,6 @@ struct imsgev               *iev_engine;
 struct event            ev_route;
 int                     ioctlsock = -1, routesock = -1;
 struct ipv6_mreq        all_routers;
-struct sockaddr_in6     all_nodes;
 struct msghdr           sndmhdr;
 struct iovec            sndiov[2];
 
@@ -239,11 +238,6 @@ frontend(int debug, int verbose)
            &all_routers.ipv6mr_multiaddr.s6_addr) == -1)
                fatal("inet_pton");
 
-       all_nodes.sin6_len = sizeof(all_nodes);
-       all_nodes.sin6_family = AF_INET6;
-       if (inet_pton(AF_INET6, "ff02::1", &all_nodes.sin6_addr) != 1)
-               fatal("inet_pton");
-
        sndcmsgbuflen = CMSG_SPACE(sizeof(struct in6_pktinfo)) +
            CMSG_SPACE(sizeof(int));
        if ((sndcmsgbuf = malloc(sndcmsgbuflen)) == NULL)