From b4e0f7625486e381f0d8f6854fdfb6ab7847b5c6 Mon Sep 17 00:00:00 2001 From: tnozaki Date: Thu, 13 May 2010 17:52:11 +0000 Subject: cast isblank(3)'s argument to unsigned char. --- primes/primes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'primes') diff --git a/primes/primes.c b/primes/primes.c index 60b65904..c8c6ea58 100644 --- a/primes/primes.c +++ b/primes/primes.c @@ -1,4 +1,4 @@ -/* $NetBSD: primes.c,v 1.17 2009/08/12 08:25:27 dholland Exp $ */ +/* $NetBSD: primes.c,v 1.18 2010/05/13 17:52:12 tnozaki Exp $ */ /* * Copyright (c) 1989, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\ #if 0 static char sccsid[] = "@(#)primes.c 8.5 (Berkeley) 5/10/95"; #else -__RCSID("$NetBSD: primes.c,v 1.17 2009/08/12 08:25:27 dholland Exp $"); +__RCSID("$NetBSD: primes.c,v 1.18 2010/05/13 17:52:12 tnozaki Exp $"); #endif #endif /* not lint */ @@ -199,7 +199,7 @@ read_num_buf(void) err(1, "stdin"); exit(0); } - for (p = buf; isblank(*p); ++p); + for (p = buf; isblank((unsigned char)*p); ++p); if (*p == '\n' || *p == '\0') continue; if (*p == '-') -- cgit v1.2.3