diff options
author | wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
commit | f9fc827448679cf1d41e56512c34521bf06ce37a (patch) | |
tree | 6b83fdf6eb5926c2f3d175a83d24bf5a2611a012 /sys/net/if.c | |
parent | 44fc281f480837836035856eb0af25443f0d2146 (diff) | |
download | FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.zip FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.tar.gz |
Fix up some sloppy coding practices:
- Delete redundant declarations.
- Add -Wredundant-declarations to Makefile.i386 so they don't come back.
- Delete sloppy COMMON-style declarations of uninitialized data in
header files.
- Add a few prototypes.
- Clean up warnings resulting from the above.
NB: ioconf.c will still generate a redundant-declaration warning, which
is unavoidable unless somebody volunteers to make `config' smarter.
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 76718e2..02741d0 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if.c 8.3 (Berkeley) 1/4/94 - * $Id: if.c,v 1.4 1994/08/08 10:58:30 davidg Exp $ + * $Id: if.c,v 1.5 1994/08/08 11:43:44 davidg Exp $ */ #include <sys/param.h> @@ -49,7 +49,6 @@ #include <net/if_types.h> int ifqmaxlen = IFQ_MAXLEN; -void if_slowtimo __P((void *arg)); /* * Network interface utility routines. @@ -97,13 +96,13 @@ if_attach(ifp) struct ifnet *ifp; { unsigned socksize, ifasize; - int namelen, unitlen, masklen, ether_output(); + int namelen, unitlen, masklen; char workbuf[12], *unitname; register struct ifnet **p = &ifnet; register struct sockaddr_dl *sdl; register struct ifaddr *ifa; static int if_indexlim = 8; - extern void link_rtrequest(); + while (*p) p = &((*p)->if_next); |