]> granicus.if.org Git - sudo/commitdiff
rmeoved unused cruft
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 23 Sep 1995 20:47:31 +0000 (20:47 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 23 Sep 1995 20:47:31 +0000 (20:47 +0000)
now passes -Wall

interfaces.c

index e3484c473adba508bfe8f7ad0e67534cde25f874..bd07b7dab525038ea8b2605561db36226692477a 100644 (file)
@@ -109,7 +109,6 @@ void load_interfaces()
     char ifconf_buf[sizeof(struct ifconf) + BUFSIZ];
     struct ifreq ifreq;
     struct sockaddr_in *sin;
-    char buf[BUFSIZ];
     int sock, n, i;
 #ifdef _ISC
     struct strioctl strioctl;
@@ -241,33 +240,6 @@ void load_interfaces()
     }
 }
 
-
-
-/**********************************************************************
- *
- *  next_if()
- *
- *  This function returns a pointer to the next struct ifreq *
- *  in the list.
- */
-
-static struct ifreq *next_if(cur)
-    struct ifreq *cur;
-{
-    struct ifreq *next;
-    u_char sa_len;
-
-#ifdef HAVE_SA_LEN
-    sa_len = cur->ifr_addr.sa_len;
-    if (sa_len > sizeof(cur->ifr_ifru))
-       next = (struct ifreq *) ((caddr_t) cur + sizeof(cur->ifr_name) + sa_len);
-    else
-#endif /* HAVE_SA_LEN */
-       next = (struct ifreq *) ((caddr_t) cur + sizeof(cur->ifr_name) + sizeof(cur->ifr_ifru));
-
-    return(next);
-}
-
 #else /* SIOCGIFCONF */
 
 /**********************************************************************