2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

changed "c" stack variable from char to unsigned char to quiet Solaris 5.8

warnings that "subscript has type char".
This commit is contained in:
David Lawrence 2000-05-25 01:08:07 +00:00
parent 5d83b561ad
commit db9628e897
2 changed files with 5 additions and 4 deletions

View File

@ -70,12 +70,13 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"; 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 */ #endif /* LIBC_SCCS and not lint */
#include <config.h> #include <config.h>
#include <ctype.h> #include <ctype.h>
#include <stddef.h> /* Required for NULL. */
#include <isc/types.h> #include <isc/types.h>
#include <isc/net.h> #include <isc/net.h>
@ -91,7 +92,7 @@ int
isc_net_aton(const char *cp, struct in_addr *addr) { isc_net_aton(const char *cp, struct in_addr *addr) {
unsigned long val; unsigned long val;
int base, n; int base, n;
char c; unsigned char c;
isc_uint8_t parts[4]; isc_uint8_t parts[4];
isc_uint8_t *pp = parts; isc_uint8_t *pp = parts;
int digit; int digit;

View File

@ -70,7 +70,7 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"; 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 */ #endif /* LIBC_SCCS and not lint */
#include <config.h> #include <config.h>
@ -93,7 +93,7 @@ int
lwres_net_aton(const char *cp, struct in_addr *addr) { lwres_net_aton(const char *cp, struct in_addr *addr) {
unsigned long val; unsigned long val;
int base, n; int base, n;
char c; unsigned char c;
lwres_uint8_t parts[4]; lwres_uint8_t parts[4];
lwres_uint8_t *pp = parts; lwres_uint8_t *pp = parts;
int digit; int digit;