diff options
Diffstat (limited to 'src/lib/libc/net/getnetbyaddr.c')
| -rw-r--r-- | src/lib/libc/net/getnetbyaddr.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/libc/net/getnetbyaddr.c b/src/lib/libc/net/getnetbyaddr.c index c193860e36..925d1d5895 100644 --- a/src/lib/libc/net/getnetbyaddr.c +++ b/src/lib/libc/net/getnetbyaddr.c | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | /* $NetBSD: getnetbyaddr.c,v 1.4 1995/02/25 06:20:30 cgd Exp $ */ | ||
| 2 | |||
| 3 | /* | 1 | /* |
| 4 | * Copyright (c) 1983, 1993 | 2 | * Copyright (c) 1983, 1993 |
| 5 | * The Regents of the University of California. All rights reserved. | 3 | * The Regents of the University of California. All rights reserved. |
| @@ -34,11 +32,7 @@ | |||
| 34 | */ | 32 | */ |
| 35 | 33 | ||
| 36 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
| 37 | #if 0 | 35 | static char rcsid[] = "$OpenBSD: getnetbyaddr.c,v 1.5 1997/07/09 01:08:28 millert Exp $"; |
| 38 | static char sccsid[] = "@(#)getnetbyaddr.c 8.1 (Berkeley) 6/4/93"; | ||
| 39 | #else | ||
| 40 | static char rcsid[] = "$NetBSD: getnetbyaddr.c,v 1.4 1995/02/25 06:20:30 cgd Exp $"; | ||
| 41 | #endif | ||
| 42 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
| 43 | 37 | ||
| 44 | #include <netdb.h> | 38 | #include <netdb.h> |
| @@ -46,14 +40,14 @@ static char rcsid[] = "$NetBSD: getnetbyaddr.c,v 1.4 1995/02/25 06:20:30 cgd Exp | |||
| 46 | extern int _net_stayopen; | 40 | extern int _net_stayopen; |
| 47 | 41 | ||
| 48 | struct netent * | 42 | struct netent * |
| 49 | getnetbyaddr(net, type) | 43 | _getnetbyaddr(net, type) |
| 50 | register long net; | 44 | register in_addr_t net; |
| 51 | register int type; | 45 | register int type; |
| 52 | { | 46 | { |
| 53 | register struct netent *p; | 47 | register struct netent *p; |
| 54 | 48 | ||
| 55 | setnetent(_net_stayopen); | 49 | setnetent(_net_stayopen); |
| 56 | while (p = getnetent()) | 50 | while ((p = getnetent())) |
| 57 | if (p->n_addrtype == type && p->n_net == net) | 51 | if (p->n_addrtype == type && p->n_net == net) |
| 58 | break; | 52 | break; |
| 59 | if (!_net_stayopen) | 53 | if (!_net_stayopen) |
