From cb3453e80fe96a2c8f5bd52b2ea05879479bc00f Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 21 Dec 1997 16:35:12 +0000 Subject: [PATCH] Moved some declarations from to the correct places, and fixed everything that depended on them being misplaced. --- sys/netipx/ipx_ip.c | 3 ++- sys/sys/protosw.h | 3 ++- sys/sys/socket.h | 10 ++-------- sys/sys/socketvar.h | 10 +++++++++- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/sys/netipx/ipx_ip.c b/sys/netipx/ipx_ip.c index bd9eb51183a..822144aa342 100644 --- a/sys/netipx/ipx_ip.c +++ b/sys/netipx/ipx_ip.c @@ -33,7 +33,7 @@ * * @(#)ipx_ip.c * - * $Id: ipx_ip.c,v 1.16 1997/06/26 19:35:47 jhay Exp $ + * $Id: ipx_ip.c,v 1.17 1997/12/15 20:31:13 eivind Exp $ */ /* @@ -49,6 +49,7 @@ #include #include #include +#include #include #include diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h index 29cbc654160..7c0ebbf6fcb 100644 --- a/sys/sys/protosw.h +++ b/sys/sys/protosw.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)protosw.h 8.1 (Berkeley) 6/2/93 - * $Id: protosw.h,v 1.20 1997/08/16 19:16:13 wollman Exp $ + * $Id: protosw.h,v 1.21 1997/09/14 02:25:40 peter Exp $ */ #ifndef _SYS_PROTOSW_H_ @@ -310,6 +310,7 @@ char *prcorequests[] = { #endif #ifdef KERNEL +void pfctlinput __P((int, struct sockaddr *)); struct protosw *pffindproto __P((int family, int protocol, int type)); struct protosw *pffindtype __P((int family, int type)); #endif diff --git a/sys/sys/socket.h b/sys/sys/socket.h index 366d0f682d5..1c58ed2dc30 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)socket.h 8.4 (Berkeley) 2/21/94 - * $Id: socket.h,v 1.21 1997/08/16 19:16:14 wollman Exp $ + * $Id: socket.h,v 1.22 1997/10/12 20:26:04 phk Exp $ */ #ifndef _SYS_SOCKET_H_ @@ -378,12 +378,6 @@ int socket __P((int, int, int)); int socketpair __P((int, int, int, int *)); __END_DECLS -#else /* KERNEL */ -#ifdef MALLOC_DECLARE -MALLOC_DECLARE(M_SOCKET); -MALLOC_DECLARE(M_SONAME); -MALLOC_DECLARE(M_PCB); -#endif -void pfctlinput __P((int, struct sockaddr *)); #endif /* !KERNEL */ + #endif /* !_SYS_SOCKET_H_ */ diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index 83c88c9e27f..2292f3752a6 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)socketvar.h 8.3 (Berkeley) 2/19/95 - * $Id: socketvar.h,v 1.21 1997/08/16 19:16:14 wollman Exp $ + * $Id: socketvar.h,v 1.22 1997/09/14 02:25:41 peter Exp $ */ #ifndef _SYS_SOCKETVAR_H_ @@ -198,6 +198,13 @@ struct socket { #define sowwakeup(so) sowakeup((so), &(so)->so_snd) #ifdef KERNEL + +#ifdef MALLOC_DECLARE +MALLOC_DECLARE(M_PCB); +MALLOC_DECLARE(M_SOCKET); +MALLOC_DECLARE(M_SONAME); +#endif + extern u_long sb_max; struct filedesc; @@ -277,6 +284,7 @@ int sosetopt __P((struct socket *so, int level, int optname, struct mbuf *m0, struct proc *p)); int soshutdown __P((struct socket *so, int how)); void sowakeup __P((struct socket *so, struct sockbuf *sb)); + #endif /* KERNEL */ #endif /* !_SYS_SOCKETVAR_H_ */