diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-20 19:20:46 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-11-20 19:46:38 -0500 |
commit | 97b31ceedcfc909b4e8479ad8f7ea4f47fb5336d (patch) | |
tree | 1ed94abdc62534569932aba970797d0d41bfdc50 /lib/inet.c | |
parent | get_sname: avoid buffer overflows if proto name is too long (diff) | |
download | net-tools-97b31ceedcfc909b4e8479ad8f7ea4f47fb5336d.tar.gz net-tools-97b31ceedcfc909b4e8479ad8f7ea4f47fb5336d.tar.bz2 net-tools-97b31ceedcfc909b4e8479ad8f7ea4f47fb5336d.zip |
clean up const/unsigned pointers with aftype/hwtype structs
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib/inet.c')
-rw-r--r-- | lib/inet.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -229,14 +229,14 @@ static void INET_reserror(char *text) /* Display an Internet socket address. */ -static char *INET_print(unsigned char *ptr) +static const char *INET_print(const char *ptr) { return (inet_ntoa((*(struct in_addr *) ptr))); } /* Display an Internet socket address. */ -static char *INET_sprint(struct sockaddr *sap, int numeric) +static const char *INET_sprint(struct sockaddr *sap, int numeric) { static char buff[128]; |