Module Name: src
Committed By: rillig
Date: Sun Jan 22 17:19:11 UTC 2023
Modified Files:
src/games/quiz: quiz.c
Log Message:
quiz: fix wrong usage of the <ctype.h> functions
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/games/quiz/quiz.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/quiz/quiz.c
diff -u src/games/quiz/quiz.c:1.28 src/games/quiz/quiz.c:1.29
--- src/games/quiz/quiz.c:1.28 Sun Feb 3 03:19:25 2019
+++ src/games/quiz/quiz.c Sun Jan 22 17:19:11 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: quiz.c,v 1.28 2019/02/03 03:19:25 mrg Exp $ */
+/* $NetBSD: quiz.c,v 1.29 2023/01/22 17:19:11 rillig Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 19
#if 0
static char sccsid[] = "@(#)quiz.c 8.3 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: quiz.c,v 1.28 2019/02/03 03:19:25 mrg Exp $");
+__RCSID("$NetBSD: quiz.c,v 1.29 2023/01/22 17:19:11 rillig Exp $");
#endif
#endif /* not lint */
@@ -362,7 +362,7 @@ score(unsigned r, unsigned w, unsigned g
static void
downcase(char *p)
{
- int ch;
+ unsigned char ch;
for (; (ch = *p) != '\0'; ++p)
if (isascii(ch) && isupper(ch))