diff options
Diffstat (limited to 'lib/libc/net/ethers.c')
-rw-r--r-- | lib/libc/net/ethers.c | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/lib/libc/net/ethers.c b/lib/libc/net/ethers.c index 2c1e562245b..0a86a30af20 100644 --- a/lib/libc/net/ethers.c +++ b/lib/libc/net/ethers.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ethers.c,v 1.17 2004/02/16 19:41:12 otto Exp $ */ +/* $OpenBSD: ethers.c,v 1.18 2005/03/25 13:24:11 otto Exp $ */ /* * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> @@ -23,7 +23,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: ethers.c,v 1.17 2004/02/16 19:41:12 otto Exp $"; +static char rcsid[] = "$OpenBSD: ethers.c,v 1.18 2005/03/25 13:24:11 otto Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -49,8 +49,7 @@ static char rcsid[] = "$OpenBSD: ethers.c,v 1.17 2004/02/16 19:41:12 otto Exp $" static char * _ether_aton(char *, struct ether_addr *); char * -ether_ntoa(e) - struct ether_addr *e; +ether_ntoa(struct ether_addr *e) { static char a[] = "xx:xx:xx:xx:xx:xx"; @@ -63,9 +62,7 @@ ether_ntoa(e) } static char * -_ether_aton(s, e) - char *s; - struct ether_addr *e; +_ether_aton(char *s, struct ether_addr *e) { int i; long l; @@ -90,8 +87,7 @@ _ether_aton(s, e) } struct ether_addr * -ether_aton(s) - char *s; +ether_aton(char *s) { static struct ether_addr n; @@ -99,9 +95,7 @@ ether_aton(s) } int -ether_ntohost(hostname, e) - char *hostname; - struct ether_addr *e; +ether_ntohost(char *hostname, struct ether_addr *e) { FILE *f; char buf[BUFSIZ+1], *p; @@ -163,9 +157,7 @@ ether_ntohost(hostname, e) } int -ether_hostton(hostname, e) - char *hostname; - struct ether_addr *e; +ether_hostton(char *hostname, struct ether_addr *e) { FILE *f; char buf[BUFSIZ+1], *p; @@ -218,10 +210,7 @@ ether_hostton(hostname, e) } int -ether_line(line, e, hostname) - char *line; - struct ether_addr *e; - char *hostname; +ether_line(char *line, struct ether_addr *e, char *hostname) { char *p; size_t n; |