diff options
Diffstat (limited to 'src/lib/libc/net/getprotoname.c')
| -rw-r--r-- | src/lib/libc/net/getprotoname.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/libc/net/getprotoname.c b/src/lib/libc/net/getprotoname.c index 4f8cf21c3f..7a4e5fede5 100644 --- a/src/lib/libc/net/getprotoname.c +++ b/src/lib/libc/net/getprotoname.c | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | /* $NetBSD: getprotoname.c,v 1.4 1995/02/25 06:20:36 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: getprotoname.c,v 1.3 1997/07/09 01:08:32 millert Exp $"; |
| 38 | static char sccsid[] = "@(#)getprotoname.c 8.1 (Berkeley) 6/4/93"; | ||
| 39 | #else | ||
| 40 | static char rcsid[] = "$NetBSD: getprotoname.c,v 1.4 1995/02/25 06:20:36 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> |
| @@ -54,7 +48,7 @@ getprotobyname(name) | |||
| 54 | register char **cp; | 48 | register char **cp; |
| 55 | 49 | ||
| 56 | setprotoent(_proto_stayopen); | 50 | setprotoent(_proto_stayopen); |
| 57 | while (p = getprotoent()) { | 51 | while ((p = getprotoent())) { |
| 58 | if (strcmp(p->p_name, name) == 0) | 52 | if (strcmp(p->p_name, name) == 0) |
| 59 | break; | 53 | break; |
| 60 | for (cp = p->p_aliases; *cp != 0; cp++) | 54 | for (cp = p->p_aliases; *cp != 0; cp++) |
