From db9628e8973fe17b8fbff96fdb23b7996a1ebce9 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 25 May 2000 01:08:07 +0000 Subject: [PATCH] changed "c" stack variable from char to unsigned char to quiet Solaris 5.8 warnings that "subscript has type char". --- lib/isc/inet_aton.c | 5 +++-- lib/lwres/lwinetaton.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/isc/inet_aton.c b/lib/isc/inet_aton.c index 0c0cee04e4..7f55412d8a 100644 --- a/lib/isc/inet_aton.c +++ b/lib/isc/inet_aton.c @@ -70,12 +70,13 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"; -static char rcsid[] = "$Id: inet_aton.c,v 1.9 2000/05/09 22:22:18 tale Exp $"; +static char rcsid[] = "$Id: inet_aton.c,v 1.10 2000/05/25 01:08:06 tale Exp $"; #endif /* LIBC_SCCS and not lint */ #include #include +#include /* Required for NULL. */ #include #include @@ -91,7 +92,7 @@ int isc_net_aton(const char *cp, struct in_addr *addr) { unsigned long val; int base, n; - char c; + unsigned char c; isc_uint8_t parts[4]; isc_uint8_t *pp = parts; int digit; diff --git a/lib/lwres/lwinetaton.c b/lib/lwres/lwinetaton.c index 47003d4175..f9777ed358 100644 --- a/lib/lwres/lwinetaton.c +++ b/lib/lwres/lwinetaton.c @@ -70,7 +70,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"; -static char rcsid[] = "$Id: lwinetaton.c,v 1.3 2000/05/09 22:22:24 tale Exp $"; +static char rcsid[] = "$Id: lwinetaton.c,v 1.4 2000/05/25 01:08:07 tale Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -93,7 +93,7 @@ int lwres_net_aton(const char *cp, struct in_addr *addr) { unsigned long val; int base, n; - char c; + unsigned char c; lwres_uint8_t parts[4]; lwres_uint8_t *pp = parts; int digit;