diff options
Diffstat (limited to 'src/lib/libc/net/getproto.c')
| -rw-r--r-- | src/lib/libc/net/getproto.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/libc/net/getproto.c b/src/lib/libc/net/getproto.c index 49c09b0806..474d8d9427 100644 --- a/src/lib/libc/net/getproto.c +++ b/src/lib/libc/net/getproto.c | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | /* $NetBSD: getproto.c,v 1.4 1995/02/25 06:20:33 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: getproto.c,v 1.3 1997/07/09 01:08:31 millert Exp $"; |
| 38 | static char sccsid[] = "@(#)getproto.c 8.1 (Berkeley) 6/4/93"; | ||
| 39 | #else | ||
| 40 | static char rcsid[] = "$NetBSD: getproto.c,v 1.4 1995/02/25 06:20:33 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> |
| @@ -52,7 +46,7 @@ getprotobynumber(proto) | |||
| 52 | register struct protoent *p; | 46 | register struct protoent *p; |
| 53 | 47 | ||
| 54 | setprotoent(_proto_stayopen); | 48 | setprotoent(_proto_stayopen); |
| 55 | while (p = getprotoent()) | 49 | while ((p = getprotoent())) |
| 56 | if (p->p_proto == proto) | 50 | if (p->p_proto == proto) |
| 57 | break; | 51 | break; |
| 58 | if (!_proto_stayopen) | 52 | if (!_proto_stayopen) |
