From 323416489d5049c8e7b51ffd6672c9694f65e7fb Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 19 Dec 1996 18:12:06 +0000 Subject: [PATCH] More cleanups to satisfy the following rules: - C++ should be supported for application functions (use __BEGIN_DECLS, etc.). - prototypes should be sorted. - comments on #endif's should spell identifiers the same as the code. - comments on #endif's should have the same sense as the code (use `!' to match ifndef, etc.). --- sys/net/ethernet.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h index 48a042602d80..78e23aaae956 100644 --- a/sys/net/ethernet.h +++ b/sys/net/ethernet.h @@ -1,7 +1,7 @@ /* * Fundamental constants relating to ethernet. * - * $Id: ethernet.h,v 1.3 1996/12/18 21:42:38 wpaul Exp $ + * $Id: ethernet.h,v 1.4 1996/12/19 15:42:52 wollman Exp $ * */ @@ -66,10 +66,13 @@ struct ether_addr { /* * Ethernet address conversion/parsing routines. */ +__BEGIN_DECLS struct ether_addr *ether_aton __P((char *)); -char *ether_ntoa __P((struct ether_addr *)); -int ether_line __P((char *, struct ether_addr *, char *)); -int ether_ntohost __P((char *, struct ether_addr *)); int ether_hostton __P((char *, struct ether_addr *)); -#endif /* KERNEL */ -#endif /* _NET_ETHERNET_H */ +int ether_line __P((char *, struct ether_addr *, char *)); +char *ether_ntoa __P((struct ether_addr *)); +int ether_ntohost __P((char *, struct ether_addr *)); +__END_DECLS +#endif /* !KERNEL */ + +#endif /* !_NET_ETHERNET_H_ */