Use unsigned chars instead of signed chars when extracting bits of the

inet address.
This commit is contained in:
Doug Rabson 1998-09-23 21:35:40 +00:00
parent cea1d019fe
commit f7506f876c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39607

View File

@ -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);