summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/ether_addr.c
diff options
context:
space:
mode:
authoreric <eric@FreeBSD.org>2002-03-06 03:26:11 +0000
committereric <eric@FreeBSD.org>2002-03-06 03:26:11 +0000
commitad9d9dfa1a657215c696ed034df974e1982b236a (patch)
treedf8ca3dea14dcd43a649c3c65823532d650688ca /lib/libc/net/ether_addr.c
parent904a90fbd58e8551b6d5df48853875e9e4e2a97b (diff)
downloadFreeBSD-src-ad9d9dfa1a657215c696ed034df974e1982b236a.zip
FreeBSD-src-ad9d9dfa1a657215c696ed034df974e1982b236a.tar.gz
Add a carriage return to each function declaration, and make use of ID tag
macros. MFC after: 1 day
Diffstat (limited to 'lib/libc/net/ether_addr.c')
-rw-r--r--lib/libc/net/ether_addr.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/libc/net/ether_addr.c b/lib/libc/net/ether_addr.c
index e3b7438..40f0ec8 100644
--- a/lib/libc/net/ether_addr.c
+++ b/lib/libc/net/ether_addr.c
@@ -34,10 +34,10 @@
* Written by Bill Paul <wpaul@ctr.columbia.edu>
* Center for Telecommunications Research
* Columbia University, New York City
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <stdio.h>
#include <paths.h>
@@ -61,7 +61,8 @@
* Parse a string of text containing an ethernet address and hostname
* and separate it into its component parts.
*/
-int ether_line(l, e, hostname)
+int
+ether_line(l, e, hostname)
const char *l;
struct ether_addr *e;
char *hostname;
@@ -83,7 +84,8 @@ int ether_line(l, e, hostname)
* Convert an ASCII representation of an ethernet address to
* binary form.
*/
-struct ether_addr *ether_aton(a)
+struct
+ether_addr *ether_aton(a)
const char *a;
{
int i;
@@ -109,7 +111,8 @@ struct ether_addr *ether_aton(a)
* Convert a binary representation of an ethernet address to
* an ASCII string.
*/
-char *ether_ntoa(n)
+char
+*ether_ntoa(n)
const struct ether_addr *n;
{
int i;
@@ -126,8 +129,8 @@ char *ether_ntoa(n)
* Map an ethernet address to a hostname. Use either /etc/ethers or
* NIS/YP.
*/
-
-int ether_ntohost(hostname, e)
+int
+ether_ntohost(hostname, e)
char *hostname;
const struct ether_addr *e;
{
@@ -179,7 +182,8 @@ int ether_ntohost(hostname, e)
* Map a hostname to an ethernet address using /etc/ethers or
* NIS/YP.
*/
-int ether_hostton(hostname, e)
+int
+ether_hostton(hostname, e)
const char *hostname;
struct ether_addr *e;
{
OpenPOWER on IntegriCloud