diff options
author | dfr <dfr@FreeBSD.org> | 1998-09-23 21:35:40 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-09-23 21:35:40 +0000 |
commit | 7c71d4162d769d7daec9276d7b435bc367f87866 (patch) | |
tree | 9ee8328078b3bc80159a740f94c69c476da4a9fa /lib/libstand | |
parent | 7fdf235da09a47e6ab96669633b2c2ca09ab6f7b (diff) | |
download | FreeBSD-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/libstand')
-rw-r--r-- | lib/libstand/inet_ntoa.c | 2 |
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 *) ∈ + unsigned char *src = (unsigned char *) ∈ sprintf(ret, fmt, src[0], src[1], src[2], src[3]); return (ret); |