aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-20 19:20:46 -0500
committerMike Frysinger <vapier@gentoo.org>2011-11-20 19:46:38 -0500
commit97b31ceedcfc909b4e8479ad8f7ea4f47fb5336d (patch)
tree1ed94abdc62534569932aba970797d0d41bfdc50 /lib/inet.c
parentget_sname: avoid buffer overflows if proto name is too long (diff)
downloadnet-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inet.c b/lib/inet.c
index 60e55df..49fcee8 100644
--- a/lib/inet.c
+++ b/lib/inet.c
@@ -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];