Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 remove never-referenced variable (in6_interfaces).



details:   https://anonhg.NetBSD.org/src/rev/5d258e8f6152
branches:  trunk
changeset: 482873:5d258e8f6152
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Feb 24 12:59:12 2000 +0000

description:
remove never-referenced variable (in6_interfaces).
fix paren match for macro.

diffstat:

 sys/netinet6/in6.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r 1d33f84919f8 -r 5d258e8f6152 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c        Thu Feb 24 12:43:49 2000 +0000
+++ b/sys/netinet6/in6.c        Thu Feb 24 12:59:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.c,v 1.18 2000/02/24 12:43:49 itojun Exp $  */
+/*     $NetBSD: in6.c,v 1.19 2000/02/24 12:59:12 itojun Exp $  */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -405,10 +405,8 @@
                mask->s6_addr8[i] = (0xff00 >> (len % 8)) & 0xff;
 }
 
-int    in6_interfaces;         /* number of external internet interfaces */
-
 #define ifa2ia6(ifa)   ((struct in6_ifaddr *)(ifa))
-#define ia62ifa(ia6)   (&(((ia6)->ia_ifa))
+#define ia62ifa(ia6)   (&((ia6)->ia_ifa))
 
 int
 in6_control(so, cmd, data, ifp, p)
@@ -558,9 +556,6 @@
                        TAILQ_INSERT_TAIL(&ifp->if_addrlist, &ia->ia_ifa,
                            ifa_list);
                        IFAREF(&ia->ia_ifa);
-
-                       if ((ifp->if_flags & IFF_LOOPBACK) == 0)
-                               in6_interfaces++;       /*XXX*/
                }
 
                if (cmd == SIOCAIFADDR_IN6) {



Home | Main Index | Thread Index | Old Index