diff options
author | archie <archie@FreeBSD.org> | 2000-07-18 22:44:52 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2000-07-18 22:44:52 +0000 |
commit | 97e87e17de4705b92440b9f3bfa830d17ef49ff6 (patch) | |
tree | 51ee3aaed1ae578c000b49c66db3434902127787 /lib/libc/net/ether_addr.c | |
parent | e58c321b82d2de60cbd3cae2af253ea6a58f7841 (diff) | |
download | FreeBSD-src-97e87e17de4705b92440b9f3bfa830d17ef49ff6.zip FreeBSD-src-97e87e17de4705b92440b9f3bfa830d17ef49ff6.tar.gz |
Const'ify parameters to ethers(3) routines as appropriate.
Diffstat (limited to 'lib/libc/net/ether_addr.c')
-rw-r--r-- | lib/libc/net/ether_addr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/net/ether_addr.c b/lib/libc/net/ether_addr.c index 89aa7b5..e3b7438 100644 --- a/lib/libc/net/ether_addr.c +++ b/lib/libc/net/ether_addr.c @@ -62,7 +62,7 @@ * and separate it into its component parts. */ int ether_line(l, e, hostname) - char *l; + const char *l; struct ether_addr *e; char *hostname; { @@ -84,7 +84,7 @@ int ether_line(l, e, hostname) * binary form. */ struct ether_addr *ether_aton(a) - char *a; + const char *a; { int i; static struct ether_addr o; @@ -110,7 +110,7 @@ struct ether_addr *ether_aton(a) * an ASCII string. */ char *ether_ntoa(n) - struct ether_addr *n; + const struct ether_addr *n; { int i; static char a[18]; @@ -129,7 +129,7 @@ char *ether_ntoa(n) int ether_ntohost(hostname, e) char *hostname; - struct ether_addr *e; + const struct ether_addr *e; { FILE *fp; char buf[BUFSIZ + 2]; @@ -180,7 +180,7 @@ int ether_ntohost(hostname, e) * NIS/YP. */ int ether_hostton(hostname, e) - char *hostname; + const char *hostname; struct ether_addr *e; { FILE *fp; |