]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - rogue/play.c
I was disappointed that someone wrote disappointed with two 's', so I fixed it.
[bsdgames-darwin.git] / rogue / play.c
index 0ede8ad7062bbc5711e3c9c7aaf18aae24a9ee08..88245384fac8714f014abbf803aa47476e43c773 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: play.c,v 1.7 2007/12/27 23:53:00 dholland Exp $        */
+/*     $NetBSD: play.c,v 1.9 2008/01/14 03:50:02 dholland Exp $        */
 
 /*
  * Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)play.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: play.c,v 1.7 2007/12/27 23:53:00 dholland Exp $");
+__RCSID("$NetBSD: play.c,v 1.9 2008/01/14 03:50:02 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -56,10 +56,11 @@ __RCSID("$NetBSD: play.c,v 1.7 2007/12/27 23:53:00 dholland Exp $");
 #include "rogue.h"
 
 boolean interrupted = 0;
-const char *unknown_command = "unknown command";
+
+static const char unknown_command[] = "unknown command";
 
 void
-play_level()
+play_level(void)
 {
        short ch;
        int count;
@@ -106,7 +107,7 @@ CH:
                case 'u':
                case 'n':
                case 'b':
-                       (void) one_move_rogue(ch, 1);
+                       (void)one_move_rogue(ch, 1);
                        break;
                case 'H':
                case 'J':