diff options
author | Bruce Evans <bde@FreeBSD.org> | 1995-03-16 18:17:34 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1995-03-16 18:17:34 +0000 |
commit | b5e8ce9f12b66453759f254bdf8bfc53fe2b6948 (patch) | |
tree | e4952f18ac85eccbbd3d9b0f010098732d07fe6d /sys/netinet/udp_usrreq.c | |
parent | 11098d3bad179feb30248af23c90e5df877d36f8 (diff) | |
download | src-b5e8ce9f12b66453759f254bdf8bfc53fe2b6948.tar.gz src-b5e8ce9f12b66453759f254bdf8bfc53fe2b6948.zip |
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from
`gcc -Wnested-externs'. Fix all the bugs found. There were no serious
ones.
Notes
Notes:
svn path=/head/; revision=7090
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 2c6f00443b8a..ec7ea3e29eb6 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)udp_usrreq.c 8.4 (Berkeley) 1/21/94 - * $Id: udp_usrreq.c,v 1.6 1995/02/16 01:25:06 wollman Exp $ + * $Id: udp_usrreq.c,v 1.7 1995/02/16 01:47:36 wollman Exp $ */ #include <sys/param.h> @@ -43,6 +43,8 @@ #include <sys/socketvar.h> #include <sys/errno.h> #include <sys/stat.h> +#include <vm/vm.h> +#include <sys/sysctl.h> #include <net/if.h> #include <net/route.h> @@ -51,6 +53,7 @@ #include <netinet/in_systm.h> #include <netinet/ip.h> #include <netinet/in_pcb.h> +#include <netinet/in_var.h> #include <netinet/ip_var.h> #include <netinet/ip_icmp.h> #include <netinet/udp.h> @@ -364,8 +367,6 @@ udp_ctlinput(cmd, sa, ip) register struct ip *ip; { register struct udphdr *uh; - extern struct in_addr zeroin_addr; - extern u_char inetctlerrmap[]; if (!PRC_IS_REDIRECT(cmd) && ((unsigned)cmd >= PRC_NCMDS || inetctlerrmap[cmd] == 0)) |