summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortedu <>2005-03-28 06:19:58 +0000
committertedu <>2005-03-28 06:19:58 +0000
commitcf4abd3b977d7ae978b7b2807824711c5db40381 (patch)
treea8b2a1bbc60c7846284208830298fc626ec495da /src/lib
parentd78c5b47b1ae8f1ee633026e9f1129fca7caa006 (diff)
downloadopenbsd-cf4abd3b977d7ae978b7b2807824711c5db40381.tar.gz
openbsd-cf4abd3b977d7ae978b7b2807824711c5db40381.tar.bz2
openbsd-cf4abd3b977d7ae978b7b2807824711c5db40381.zip
add some const to ether_*. remove bonus prototypes this brought out.
ok deraadt@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/net/ethers.c14
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)
26static char rcsid[] = "$OpenBSD: ethers.c,v 1.18 2005/03/25 13:24:11 otto Exp $"; 26static 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
49static char * _ether_aton(char *, struct ether_addr *); 49static char * _ether_aton(const char *, struct ether_addr *);
50 50
51char * 51char *
52ether_ntoa(struct ether_addr *e) 52ether_ntoa(struct ether_addr *e)
@@ -62,7 +62,7 @@ ether_ntoa(struct ether_addr *e)
62} 62}
63 63
64static char * 64static 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
89struct ether_addr * 89struct ether_addr *
90ether_aton(char *s) 90ether_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
159int 159int
160ether_hostton(char *hostname, struct ether_addr *e) 160ether_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
212int 212int
213ether_line(char *line, struct ether_addr *e, char *hostname) 213ether_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;