diff options
author | bde <bde@FreeBSD.org> | 1996-12-19 18:12:06 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-12-19 18:12:06 +0000 |
commit | e038bca5512c16a3e256c4767ef430225b0dbcd0 (patch) | |
tree | a13f608459dc6b04d9bff3cbe6b370c8e77f979d /sys/net/ethernet.h | |
parent | 559ebc11e123ce12aa487779048eec0a4a5d3ccc (diff) | |
download | FreeBSD-src-e038bca5512c16a3e256c4767ef430225b0dbcd0.zip FreeBSD-src-e038bca5512c16a3e256c4767ef430225b0dbcd0.tar.gz |
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.).
Diffstat (limited to 'sys/net/ethernet.h')
-rw-r--r-- | sys/net/ethernet.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h index 48a0426..78e23aa 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_hostton __P((char *, struct ether_addr *)); int ether_line __P((char *, struct ether_addr *, char *)); +char *ether_ntoa __P((struct ether_addr *)); int ether_ntohost __P((char *, struct ether_addr *)); -int ether_hostton __P((char *, struct ether_addr *)); -#endif /* KERNEL */ -#endif /* _NET_ETHERNET_H */ +__END_DECLS +#endif /* !KERNEL */ + +#endif /* !_NET_ETHERNET_H_ */ |