Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rtadvd Remove dst variable that was only set but no...



details:   https://anonhg.NetBSD.org/src/rev/d0c6c8747276
branches:  trunk
changeset: 1009351:d0c6c8747276
user:      wiz <wiz%NetBSD.org@localhost>
date:      Tue Apr 21 12:23:13 2020 +0000

description:
Remove dst variable that was only set but not used.

(This broke the build for me.)

diffstat:

 usr.sbin/rtadvd/rtadvd.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 0042c4e25c02 -r d0c6c8747276 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c  Tue Apr 21 12:21:27 2020 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c  Tue Apr 21 12:23:13 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtadvd.c,v 1.74 2020/04/21 12:21:27 wiz Exp $  */
+/*     $NetBSD: rtadvd.c,v 1.75 2020/04/21 12:23:13 wiz Exp $  */
 /*     $KAME: rtadvd.c,v 1.92 2005/10/17 14:40:02 suz Exp $    */
 
 /*
@@ -725,7 +725,6 @@
        struct cmsghdr *cm;
        struct in6_pktinfo *pi = NULL;
        char ntopbuf[INET6_ADDRSTRLEN], ifnamebuf[IFNAMSIZ];
-       struct in6_addr dst = in6addr_any;
        struct rainfo *rai;
 
        /*
@@ -750,7 +749,6 @@
                    cm->cmsg_len == CMSG_LEN(sizeof(struct in6_pktinfo))) {
                        pi = (struct in6_pktinfo *)(CMSG_DATA(cm));
                        ifindex = pi->ipi6_ifindex;
-                       dst = pi->ipi6_addr;
                }
                if (cm->cmsg_level == IPPROTO_IPV6 &&
                    cm->cmsg_type == IPV6_HOPLIMIT &&



Home | Main Index | Thread Index | Old Index