From 9908eacfd64221cbbd5925b23cd275c19c156b77 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 4 Nov 1998 20:12:12 +0000 Subject: [PATCH] char -> unsigned char --- bin/sleep/sleep.c | 6 +++--- bin/test/test.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/sleep/sleep.c b/bin/sleep/sleep.c index 87785b9772e8..62c892810f2c 100644 --- a/bin/sleep/sleep.c +++ b/bin/sleep/sleep.c @@ -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) { diff --git a/bin/test/test.c b/bin/test/test.c index 366ccda940ba..d6dbe3db746e 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -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 #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 @@ -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)