From 11aee0b4b0dc814bc9a46cf57ce03ddf2903c9e3 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 17 Dec 2002 19:30:04 +0000 Subject: [PATCH] Remove unused and incorrectly maintained variable "in_interfaces" --- sys/netinet/in.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/netinet/in.c b/sys/netinet/in.c index d66abc2ab64a..8fa63ea3bafc 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -175,8 +175,6 @@ in_len2mask(mask, len) p[i] = (0xff00 >> (len % 8)) & 0xff; } -static int in_interfaces; /* number of external internet interfaces */ - /* * Generic internet control operations (ioctl's). * Ifp is 0 if not an interface-specific ioctl. @@ -293,8 +291,6 @@ in_control(so, cmd, data, ifp, td) ia->ia_broadaddr.sin_family = AF_INET; } ia->ia_ifp = ifp; - if (!(ifp->if_flags & IFF_LOOPBACK)) - in_interfaces++; splx(s); iaIsNew = 1; }