diff options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/net/ethers.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libc/net/ethers.c b/src/lib/libc/net/ethers.c index 0a86a30af2..e46dcd7006 100644 --- a/src/lib/libc/net/ethers.c +++ b/src/lib/libc/net/ethers.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ethers.c,v 1.18 2005/03/25 13:24:11 otto Exp $ */ | 1 | /* $OpenBSD: ethers.c,v 1.19 2005/03/28 06:19:58 tedu Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> | 4 | * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> |
| @@ -23,7 +23,7 @@ | |||
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | #if defined(LIBC_SCCS) && !defined(lint) | 25 | #if defined(LIBC_SCCS) && !defined(lint) |
| 26 | static char rcsid[] = "$OpenBSD: ethers.c,v 1.18 2005/03/25 13:24:11 otto Exp $"; | 26 | static char rcsid[] = "$OpenBSD: ethers.c,v 1.19 2005/03/28 06:19:58 tedu Exp $"; |
| 27 | #endif /* LIBC_SCCS and not lint */ | 27 | #endif /* LIBC_SCCS and not lint */ |
| 28 | 28 | ||
| 29 | #include <sys/types.h> | 29 | #include <sys/types.h> |
| @@ -46,7 +46,7 @@ static char rcsid[] = "$OpenBSD: ethers.c,v 1.18 2005/03/25 13:24:11 otto Exp $" | |||
| 46 | #define _PATH_ETHERS "/etc/ethers" | 46 | #define _PATH_ETHERS "/etc/ethers" |
| 47 | #endif | 47 | #endif |
| 48 | 48 | ||
| 49 | static char * _ether_aton(char *, struct ether_addr *); | 49 | static char * _ether_aton(const char *, struct ether_addr *); |
| 50 | 50 | ||
| 51 | char * | 51 | char * |
| 52 | ether_ntoa(struct ether_addr *e) | 52 | ether_ntoa(struct ether_addr *e) |
| @@ -62,7 +62,7 @@ ether_ntoa(struct ether_addr *e) | |||
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | static char * | 64 | static char * |
| 65 | _ether_aton(char *s, struct ether_addr *e) | 65 | _ether_aton(const char *s, struct ether_addr *e) |
| 66 | { | 66 | { |
| 67 | int i; | 67 | int i; |
| 68 | long l; | 68 | long l; |
| @@ -87,7 +87,7 @@ _ether_aton(char *s, struct ether_addr *e) | |||
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | struct ether_addr * | 89 | struct ether_addr * |
| 90 | ether_aton(char *s) | 90 | ether_aton(const char *s) |
| 91 | { | 91 | { |
| 92 | static struct ether_addr n; | 92 | static struct ether_addr n; |
| 93 | 93 | ||
| @@ -157,7 +157,7 @@ ether_ntohost(char *hostname, struct ether_addr *e) | |||
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | int | 159 | int |
| 160 | ether_hostton(char *hostname, struct ether_addr *e) | 160 | ether_hostton(const char *hostname, struct ether_addr *e) |
| 161 | { | 161 | { |
| 162 | FILE *f; | 162 | FILE *f; |
| 163 | char buf[BUFSIZ+1], *p; | 163 | char buf[BUFSIZ+1], *p; |
| @@ -210,7 +210,7 @@ ether_hostton(char *hostname, struct ether_addr *e) | |||
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | int | 212 | int |
| 213 | ether_line(char *line, struct ether_addr *e, char *hostname) | 213 | ether_line(const char *line, struct ether_addr *e, char *hostname) |
| 214 | { | 214 | { |
| 215 | char *p; | 215 | char *p; |
| 216 | size_t n; | 216 | size_t n; |
