char -> unsigned char

This commit is contained in:
christos 1998-11-04 20:12:12 +00:00
parent 040da092ae
commit 9908eacfd6
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sleep.c,v 1.15 1998/07/28 11:41:58 mycroft Exp $ */
/* $NetBSD: sleep.c,v 1.16 1998/11/04 20:13:03 christos Exp $ */
/*
* Copyright (c) 1988, 1993, 1994
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)sleep.c 8.3 (Berkeley) 4/2/94";
#else
__RCSID("$NetBSD: sleep.c,v 1.15 1998/07/28 11:41:58 mycroft Exp $");
__RCSID("$NetBSD: sleep.c,v 1.16 1998/11/04 20:13:03 christos Exp $");
#endif
#endif /* not lint */
@ -102,7 +102,7 @@ main(argc, argv)
fracflag = 0;
arg = *argv;
for (temp = arg; *temp != '\0'; temp++)
if (!isdigit(*temp))
if (!isdigit((unsigned char)*temp))
fracflag++;
if (fracflag) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: test.c,v 1.19 1998/07/28 11:41:59 mycroft Exp $ */
/* $NetBSD: test.c,v 1.20 1998/11/04 20:12:12 christos Exp $ */
/*
* test(1); version 7-like -- author Erik Baalbergen
@ -12,7 +12,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: test.c,v 1.19 1998/07/28 11:41:59 mycroft Exp $");
__RCSID("$NetBSD: test.c,v 1.20 1998/11/04 20:12:12 christos Exp $");
#endif
#include <sys/types.h>
@ -424,7 +424,7 @@ getn(s)
if (errno != 0)
errx(2, "%s: out of range", s);
while (isspace(*p))
while (isspace((unsigned char)*p))
p++;
if (*p)