summaryrefslogtreecommitdiffstats
path: root/sys/netipx/ipx_ip.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-24 12:25:13 +0000
committerbde <bde@FreeBSD.org>1995-11-24 12:25:13 +0000
commitcfd4c99c1be0b13f09a0fc1170a9e3858a95e0be (patch)
treeef45e7b6fbd42ab127711b3f63dc00909df1c61b /sys/netipx/ipx_ip.h
parentc02caaf51c301ea60f3f83f8e6aabc6d4528a4d0 (diff)
downloadFreeBSD-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_ip.h')
-rw-r--r--sys/netipx/ipx_ip.h35
1 files changed, 16 insertions, 19 deletions
diff --git a/sys/netipx/ipx_ip.h b/sys/netipx/ipx_ip.h
index b01ee26..833110c 100644
--- a/sys/netipx/ipx_ip.h
+++ b/sys/netipx/ipx_ip.h
@@ -33,11 +33,11 @@
*
* @(#)ipxip.h
*
- * $Id: ipx_ip.h,v 1.2 1995/10/31 23:36:32 julian Exp $
+ * $Id: ipx_ip.h,v 1.3 1995/11/04 09:03:03 julian Exp $
*/
-#ifndef __NETIPX_IPXIP_H_
-#define __NETIPX_IPXIP_H_
+#ifndef _NETIPX_IPXIP_H_
+#define _NETIPX_IPXIP_H_
struct ifnet_en {
struct ifnet ifen_ifnet;
@@ -54,21 +54,18 @@ struct ifnet_en {
extern struct ifnet ipxipif;
extern struct ifnet_en *ipxip_list;
-#include <sys/cdefs.h>
+struct ifnet_en *
+ ipxipattach __P((void));
+void ipxip_ctlinput __P((int cmd, struct sockaddr *sa));
+int ipxip_free __P((struct ifnet *ifp));
+void ipxip_input __P((struct mbuf *m, struct ifnet *ifp));
+int ipxipioctl __P((struct ifnet *ifp, int cmd, caddr_t data));
+int ipxipoutput __P((struct ifnet *ifp, struct mbuf *m,
+ struct sockaddr *dst, struct rtentry *rt));
+int ipxip_route __P((struct mbuf *m));
+void ipxip_rtchange __P((struct in_addr *dst));
+void ipxipstart __P((struct ifnet *ifp));
-__BEGIN_DECLS
-void ipxip_rtchange __P((struct in_addr *dst));
-struct ifnet_en *ipxipattach __P((void));
-int ipxipioctl __P((struct ifnet *ifp, int cmd, caddr_t data));
-void ipxip_input __P((struct mbuf *m, struct ifnet *ifp));
-int ipxipoutput __P((struct ifnet *ifn, struct mbuf *m, struct sockaddr *dst, struct rtentry *rt));
-void ipxipstart __P((struct ifnet *ifp));
-int ipxip_route __P((struct mbuf *m));
-int ipxip_free __P((struct ifnet *ifp));
-void ipxip_ctlinput __P((int cmd, struct sockaddr *sa));
-__END_DECLS
-
-#endif
-
-#endif
+#endif /* KERNEL */
+#endif /* !_NETIPX_IPXIP_H_ */
OpenPOWER on IntegriCloud