diff options
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())) |