summaryrefslogtreecommitdiffstats
path: root/games/arithmetic
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-10-24 17:13:27 +0000
committermmcc <mmcc@openbsd.org>2015-10-24 17:13:27 +0000
commit057b7905c4df8aa05eca77ab5ca5f166b00d9b09 (patch)
tree5b8688fee7948908baf581286c50d09a551f8c42 /games/arithmetic
parentsome minor tweaks; ok ajacoutot (diff)
downloadwireguard-openbsd-057b7905c4df8aa05eca77ab5ca5f166b00d9b09.tar.xz
wireguard-openbsd-057b7905c4df8aa05eca77ab5ca5f166b00d9b09.zip
Cast ctype functions' arguments to unsigned char.
ok guenther@
Diffstat (limited to 'games/arithmetic')
-rw-r--r--games/arithmetic/arithmetic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c
index bd2bfd5ce6c..fce5bcac5e2 100644
--- a/games/arithmetic/arithmetic.c
+++ b/games/arithmetic/arithmetic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arithmetic.c,v 1.20 2015/10/10 22:32:55 doug Exp $ */
+/* $OpenBSD: arithmetic.c,v 1.21 2015/10/24 17:13:27 mmcc Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -222,8 +222,8 @@ retry:
(void)printf("\n");
return(EOF);
}
- for (p = line; isspace(*p); ++p);
- if (!isdigit(*p)) {
+ for (p = line; isspace((unsigned char)*p); ++p);
+ if (!isdigit((unsigned char)*p)) {
(void)printf("Please type a number.\n");
continue;
}