diff options
Diffstat (limited to 'src/lib/libc/net/getnetent.c')
| -rw-r--r-- | src/lib/libc/net/getnetent.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libc/net/getnetent.c b/src/lib/libc/net/getnetent.c index 4c3b38e7d8..3e52c1ff4d 100644 --- a/src/lib/libc/net/getnetent.c +++ b/src/lib/libc/net/getnetent.c | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | #if defined(LIBC_SCCS) && !defined(lint) | 30 | #if defined(LIBC_SCCS) && !defined(lint) |
| 31 | static char rcsid[] = "$OpenBSD: getnetent.c,v 1.9 2003/06/02 20:18:35 millert Exp $"; | 31 | static char rcsid[] = "$OpenBSD: getnetent.c,v 1.10 2005/03/25 13:24:12 otto Exp $"; |
| 32 | #endif /* LIBC_SCCS and not lint */ | 32 | #endif /* LIBC_SCCS and not lint */ |
| 33 | 33 | ||
| 34 | #include <sys/types.h> | 34 | #include <sys/types.h> |
| @@ -48,8 +48,7 @@ static char *net_aliases[MAXALIASES]; | |||
| 48 | int _net_stayopen; | 48 | int _net_stayopen; |
| 49 | 49 | ||
| 50 | void | 50 | void |
| 51 | setnetent(f) | 51 | setnetent(int f) |
| 52 | int f; | ||
| 53 | { | 52 | { |
| 54 | if (netf == NULL) | 53 | if (netf == NULL) |
| 55 | netf = fopen(_PATH_NETWORKS, "r" ); | 54 | netf = fopen(_PATH_NETWORKS, "r" ); |
| @@ -59,7 +58,7 @@ setnetent(f) | |||
| 59 | } | 58 | } |
| 60 | 59 | ||
| 61 | void | 60 | void |
| 62 | endnetent() | 61 | endnetent(void) |
| 63 | { | 62 | { |
| 64 | if (netf) { | 63 | if (netf) { |
| 65 | fclose(netf); | 64 | fclose(netf); |
| @@ -69,7 +68,7 @@ endnetent() | |||
| 69 | } | 68 | } |
| 70 | 69 | ||
| 71 | struct netent * | 70 | struct netent * |
| 72 | getnetent() | 71 | getnetent(void) |
| 73 | { | 72 | { |
| 74 | char *p, *cp, **q; | 73 | char *p, *cp, **q; |
| 75 | size_t len; | 74 | size_t len; |
