summaryrefslogtreecommitdiffstats
path: root/monop/misc.c
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2004-11-05 21:30:31 +0000
committerdsl <dsl@NetBSD.org>2004-11-05 21:30:31 +0000
commit9649fe0209de88926626165951e2db3043b73ee6 (patch)
treef7d328358e6de9a877c8d0fc24f5ae49ad21f031 /monop/misc.c
parentef4d58572f66f86a3db4aa555d139fee63cca10c (diff)
downloadbsdgames-darwin-9649fe0209de88926626165951e2db3043b73ee6.tar.gz
bsdgames-darwin-9649fe0209de88926626165951e2db3043b73ee6.tar.zst
bsdgames-darwin-9649fe0209de88926626165951e2db3043b73ee6.zip
Add (unsigned char) cast to ctype functions
Diffstat (limited to 'monop/misc.c')
-rw-r--r--monop/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/monop/misc.c b/monop/misc.c
index f9a37557..1d3a5669 100644
--- a/monop/misc.c
+++ b/monop/misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.12 2004/01/26 09:59:36 jsm Exp $ */
+/* $NetBSD: misc.c,v 1.13 2004/11/05 21:30:32 dsl Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: misc.c,v 1.12 2004/01/26 09:59:36 jsm Exp $");
+__RCSID("$NetBSD: misc.c,v 1.13 2004/11/05 21:30:32 dsl Exp $");
#endif
#endif /* not lint */
@@ -109,9 +109,9 @@ inter:
*sp = c;
if (sp == buf)
continue;
- for (sp = buf; isspace(*sp); sp++)
+ for (sp = buf; isspace((unsigned char)*sp); sp++)
continue;
- for (; isdigit(*sp); sp++)
+ for (; isdigit((unsigned char)*sp); sp++)
num = num * 10 + *sp - '0';
if (*sp == '\n')
return num;