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 | |
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')
-rw-r--r-- | lib/libc/net/ether_addr.c | 10 | ||||
-rw-r--r-- | lib/libc/net/ethers.3 | 10 |
2 files changed, 10 insertions, 10 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; diff --git a/lib/libc/net/ethers.3 b/lib/libc/net/ethers.3 index 1c1fb26..46f0e4f 100644 --- a/lib/libc/net/ethers.3 +++ b/lib/libc/net/ethers.3 @@ -48,15 +48,15 @@ .Fd #include <sys/socket.h> .Fd #include <net/ethernet.h> .Ft int -.Fn ether_line "char *l" "struct ether_addr *e" "char *hostname" +.Fn ether_line "const char *l" "struct ether_addr *e" "char *hostname" .Ft struct ether_addr * -.Fn ether_aton "char *a" +.Fn ether_aton "const char *a" .Ft char * -.Fn ether_ntoa "struct ether_addr *n" +.Fn ether_ntoa "const struct ether_addr *n" .Ft int -.Fn ether_ntohost "char *hostname" "struct ether_addr *e" +.Fn ether_ntohost "char *hostname" "const struct ether_addr *e" .Ft int -.Fn ether_hostton "char *hostname" "struct ether_addr *e" +.Fn ether_hostton "const char *hostname" "struct ether_addr *e" .Sh DESCRIPTION These functions operate on ethernet addresses using an .Ar ether_addr |