Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/quiz quiz: fix wrong usage of the <ctype.h> functions



details:   https://anonhg.NetBSD.org/src/rev/f051d5115340
branches:  trunk
changeset: 373164:f051d5115340
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jan 22 17:19:11 2023 +0000

description:
quiz: fix wrong usage of the <ctype.h> functions

diffstat:

 games/quiz/quiz.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 700bee992d94 -r f051d5115340 games/quiz/quiz.c
--- a/games/quiz/quiz.c Sun Jan 22 17:17:24 2023 +0000
+++ b/games/quiz/quiz.c Sun Jan 22 17:19:11 2023 +0000
@@ -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 @@
 #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 @@
 static void
 downcase(char *p)
 {
-       int ch;
+       unsigned char ch;
 
        for (; (ch = *p) != '\0'; ++p)
                if (isascii(ch) && isupper(ch))



Home | Main Index | Thread Index | Old Index