ANSI C compatible
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 23 Dec 1987 05:11:49 +0000 (21:11 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 23 Dec 1987 05:11:49 +0000 (21:11 -0800)
SCCS-vsn: games/hangman/getguess.c 5.2

usr/src/games/hangman/getguess.c

index 6517821..44c6872 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)getguess.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)getguess.c 5.2 (Berkeley) %G%";
 #endif /* not lint */
 
 # include      "hangman.h"
 #endif /* not lint */
 
 # include      "hangman.h"
@@ -39,7 +39,7 @@ getguess()
                        else
                                break;
                }
                        else
                                break;
                }
-               else if (ch == CTRL(D))
+               else if (ch == CTRL('D'))
                        die();
                else
                        mvprintw(MESGY, MESGX, "Not a valid guess: '%s'",
                        die();
                else
                        mvprintw(MESGY, MESGX, "Not a valid guess: '%s'",
@@ -76,7 +76,7 @@ readch()
                        if (++cnt > 100)
                                die();
                }
                        if (++cnt > 100)
                                die();
                }
-               else if (ch == CTRL(L)) {
+               else if (ch == CTRL('L')) {
                        wrefresh(curscr);
                        mvcur(0, 0, curscr->_cury, curscr->_curx);
                }
                        wrefresh(curscr);
                        mvcur(0, 0, curscr->_cury, curscr->_curx);
                }