]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - hangman/getguess.c
PR/55693: Andreas Gustafsson: factor(6) lists factors in wrong order
[bsdgames-darwin.git] / hangman / getguess.c
index 691c60e4d47e9df3c8605f168f1329aea53075b3..c4516c17f5e7bebc9b1c498bb6f374f8a0b6417a 100644 (file)
@@ -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++;