diff options
author | bde <bde@FreeBSD.org> | 1995-11-24 12:25:13 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-24 12:25:13 +0000 |
commit | cfd4c99c1be0b13f09a0fc1170a9e3858a95e0be (patch) | |
tree | ef45e7b6fbd42ab127711b3f63dc00909df1c61b /sys/netipx/ipx_pcb.h | |
parent | c02caaf51c301ea60f3f83f8e6aabc6d4528a4d0 (diff) | |
download | FreeBSD-src-cfd4c99c1be0b13f09a0fc1170a9e3858a95e0be.zip FreeBSD-src-cfd4c99c1be0b13f09a0fc1170a9e3858a95e0be.tar.gz |
Cleaned up prototypes:
- don't #include other headers just to get struct names.
- don't use __BEGIN_DECLS/__END_DECLS for system prototypes. It is for
user prototypes.
- don't use extern.
- don't use lines longer than 80 columns.
- use alphabetical order.
- use tabs.
Uniformized idempotency ifdefs.
Diffstat (limited to 'sys/netipx/ipx_pcb.h')
-rw-r--r-- | sys/netipx/ipx_pcb.h | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/sys/netipx/ipx_pcb.h b/sys/netipx/ipx_pcb.h index 6626501..8dd167b 100644 --- a/sys/netipx/ipx_pcb.h +++ b/sys/netipx/ipx_pcb.h @@ -33,11 +33,11 @@ * * @(#)ipx_pcb.h * - * $Id: ipx_pcb.h,v 1.3 1995/10/31 23:36:35 julian Exp $ + * $Id: ipx_pcb.h,v 1.4 1995/11/04 09:03:16 julian Exp $ */ #ifndef _NETIPX_IPX_PCB_H_ -#define _NETIPX_IPX_PCB_H_ +#define _NETIPX_IPX_PCB_H_ /* * IPX protocol interface control block. @@ -78,25 +78,20 @@ struct ipxpcb { #define IPXSNDQ 2048 #define IPXRCVQ 2048 - #ifdef KERNEL - extern struct ipxpcb ipxpcb; /* head of list */ -#include <sys/cdefs.h> - -__BEGIN_DECLS -int ipx_pcballoc __P((struct socket *so, struct ipxpcb *head)); -int ipx_pcbbind __P((struct ipxpcb *ipxp, struct mbuf *nam)); -int ipx_pcbconnect __P((struct ipxpcb *ipxp, struct mbuf *nam)); -void ipx_pcbdisconnect __P((struct ipxpcb *ipxp)); -void ipx_pcbdetach __P((struct ipxpcb *ipxp)); -void ipx_setsockaddr __P((struct ipxpcb *ipxp, struct mbuf *nam)); -void ipx_setpeeraddr __P((struct ipxpcb *ipxp, struct mbuf *nam)); -void ipx_pcbnotify __P((struct ipx_addr *dst, int errno, void (*notify)(struct ipxpcb *), long param)); -struct ipxpcb *ipx_pcblookup __P((struct ipx_addr *faddr, int lport, int wildp)); -__END_DECLS - +int ipx_pcballoc __P((struct socket *so, struct ipxpcb *head)); +int ipx_pcbbind __P((struct ipxpcb *ipxp, struct mbuf *nam)); +int ipx_pcbconnect __P((struct ipxpcb *ipxp, struct mbuf *nam)); +void ipx_pcbdetach __P((struct ipxpcb *ipxp)); +void ipx_pcbdisconnect __P((struct ipxpcb *ipxp)); +struct ipxpcb * + ipx_pcblookup __P((struct ipx_addr *faddr, int lport, int wildp)); +void ipx_pcbnotify __P((struct ipx_addr *dst, int errno, + void (*notify)(struct ipxpcb *), long param)); +void ipx_setpeeraddr __P((struct ipxpcb *ipxp, struct mbuf *nam)); +void ipx_setsockaddr __P((struct ipxpcb *ipxp, struct mbuf *nam)); #endif -#endif +#endif /* !_NETIPX_IPX_PCB_H_ */ |