summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-09-23 21:35:40 +0000
committerdfr <dfr@FreeBSD.org>1998-09-23 21:35:40 +0000
commit7c71d4162d769d7daec9276d7b435bc367f87866 (patch)
tree9ee8328078b3bc80159a740f94c69c476da4a9fa /lib
parent7fdf235da09a47e6ab96669633b2c2ca09ab6f7b (diff)
downloadFreeBSD-src-7c71d4162d769d7daec9276d7b435bc367f87866.zip
FreeBSD-src-7c71d4162d769d7daec9276d7b435bc367f87866.tar.gz
Use unsigned chars instead of signed chars when extracting bits of the
inet address.
Diffstat (limited to 'lib')
-rw-r--r--lib/libstand/inet_ntoa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/inet_ntoa.c b/lib/libstand/inet_ntoa.c
index 5953987..c7efb0a 100644
--- a/lib/libstand/inet_ntoa.c
+++ b/lib/libstand/inet_ntoa.c
@@ -51,7 +51,7 @@ inet_ntoa(in)
{
static const char fmt[] = "%u.%u.%u.%u";
static char ret[sizeof "255.255.255.255"];
- char *src = (char *) &in;
+ unsigned char *src = (unsigned char *) &in;
sprintf(ret, fmt, src[0], src[1], src[2], src[3]);
return (ret);
OpenPOWER on IntegriCloud