char -> unsigned char

This commit is contained in:
christos 1998-11-06 16:52:42 +00:00
parent f12b956e84
commit 7f1ed758a3
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ping.c,v 1.42 1998/10/26 04:45:35 enami Exp $ */
/* $NetBSD: ping.c,v 1.43 1998/11/06 16:52:42 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -62,7 +62,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: ping.c,v 1.42 1998/10/26 04:45:35 enami Exp $");
__RCSID("$NetBSD: ping.c,v 1.43 1998/11/06 16:52:42 christos Exp $");
#endif
#include <stdio.h>
@ -1556,7 +1556,7 @@ fill(void)
int pat[16];
for (cp = fill_pat; *cp != '\0'; cp++) {
if (!isxdigit(*cp))
if (!isxdigit((unsigned char)*cp))
break;
}
if (cp == fill_pat || *cp != '\0' || (cp-fill_pat) > 16*2) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: util.c,v 1.34 1998/09/28 09:03:22 lukem Exp $ */
/* $NetBSD: util.c,v 1.35 1998/11/06 16:53:29 christos Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: util.c,v 1.34 1998/09/28 09:03:22 lukem Exp $");
__RCSID("$NetBSD: util.c,v 1.35 1998/11/06 16:53:29 christos Exp $");
#endif /* not lint */
/*
@ -978,7 +978,7 @@ getsockbufsize(arg)
char *cp;
int val;
if (!isdigit(arg[0]))
if (!isdigit((unsigned char)arg[0]))
return (-1);
val = strtol(arg, &cp, 10);