diff options
author | 2005-03-25 13:24:11 +0000 | |
---|---|---|
committer | 2005-03-25 13:24:11 +0000 | |
commit | db5b349cf7aa19c2b6169fbb65597f2e741714ab (patch) | |
tree | 3225f0ae035a80a4448da2c70fd7f41f085c275b /lib/libc/net/getnetbyaddr.c | |
parent | whitespace (diff) | |
download | wireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.tar.xz wireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.zip |
ansify. ok deraadt@ moritz@
Diffstat (limited to 'lib/libc/net/getnetbyaddr.c')
-rw-r--r-- | lib/libc/net/getnetbyaddr.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/net/getnetbyaddr.c b/lib/libc/net/getnetbyaddr.c index 29365d4735f..82d1ea1dcaa 100644 --- a/lib/libc/net/getnetbyaddr.c +++ b/lib/libc/net/getnetbyaddr.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getnetbyaddr.c,v 1.6 2003/06/02 20:18:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: getnetbyaddr.c,v 1.7 2005/03/25 13:24:12 otto Exp $"; #endif /* LIBC_SCCS and not lint */ #include <netdb.h> @@ -36,11 +36,9 @@ static char rcsid[] = "$OpenBSD: getnetbyaddr.c,v 1.6 2003/06/02 20:18:35 miller extern int _net_stayopen; struct netent * -_getnetbyaddr(net, type) - register in_addr_t net; - register int type; +_getnetbyaddr(in_addr_t net, int type) { - register struct netent *p; + struct netent *p; setnetent(_net_stayopen); while ((p = getnetent())) |