diff options
author | dholland <dholland@NetBSD.org> | 2012-10-13 21:01:13 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2012-10-13 21:01:13 +0000 |
commit | b28859492eef9545fab9fa13e43f151a2206b114 (patch) | |
tree | d847587f5385883e9485fb025e93689116394f4d /hangman/getguess.c | |
parent | c8cd2374db6fe8db6f4149ff6f9afdae32fe2473 (diff) | |
download | bsdgames-darwin-b28859492eef9545fab9fa13e43f151a2206b114.tar.gz bsdgames-darwin-b28859492eef9545fab9fa13e43f151a2206b114.tar.zst bsdgames-darwin-b28859492eef9545fab9fa13e43f151a2206b114.zip |
Pass -Wstrict-overflow; while here, use curses TRUE and FALSE only with
curses.
Diffstat (limited to 'hangman/getguess.c')
-rw-r--r-- | hangman/getguess.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hangman/getguess.c b/hangman/getguess.c index 691c60e4..c4516c17 100644 --- a/hangman/getguess.c +++ b/hangman/getguess.c @@ -1,4 +1,4 @@ -/* $NetBSD: getguess.c,v 1.9 2012/06/19 05:45:00 dholland Exp $ */ +/* $NetBSD: getguess.c,v 1.10 2012/10/13 21:01:13 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)getguess.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: getguess.c,v 1.9 2012/06/19 05:45:00 dholland Exp $"); +__RCSID("$NetBSD: getguess.c,v 1.10 2012/10/13 21:01:13 dholland Exp $"); #endif #endif /* not lint */ @@ -76,12 +76,12 @@ getguess(void) move(MESGY, MESGX); clrtoeol(); - Guessed[ch - 'a'] = TRUE; - correct = FALSE; + Guessed[ch - 'a'] = true; + correct = false; for (i = 0; Word[i] != '\0'; i++) if (Word[i] == ch) { Known[i] = ch; - correct = TRUE; + correct = true; } if (!correct) Errors++; |