summaryrefslogtreecommitdiffstats
path: root/primes
diff options
context:
space:
mode:
authortnozaki <tnozaki@NetBSD.org>2010-05-13 17:52:11 +0000
committertnozaki <tnozaki@NetBSD.org>2010-05-13 17:52:11 +0000
commitb4e0f7625486e381f0d8f6854fdfb6ab7847b5c6 (patch)
tree61719fbd356059d7c9640733ac7924992cae5466 /primes
parent629b47a2e5104bb4848a24ed0efcfbce92903ed4 (diff)
downloadbsdgames-darwin-b4e0f7625486e381f0d8f6854fdfb6ab7847b5c6.tar.gz
bsdgames-darwin-b4e0f7625486e381f0d8f6854fdfb6ab7847b5c6.tar.zst
bsdgames-darwin-b4e0f7625486e381f0d8f6854fdfb6ab7847b5c6.zip
cast isblank(3)'s argument to unsigned char.
Diffstat (limited to 'primes')
-rw-r--r--primes/primes.c6
1 files changed, 3 insertions, 3 deletions
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 == '-')