]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - trek/play.c
cgram: rewrite completely, fixing bugs and style
[bsdgames-darwin.git] / trek / play.c
index 9d8e63471371814d2564a515e7b801331be42fc8..8564933002122d66b8ecca57a2b409c86913fda3 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: play.c,v 1.11 2009/05/24 21:44:56 dholland Exp $       */
+/*     $NetBSD: play.c,v 1.12 2009/08/12 08:54:54 dholland Exp $       */
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)play.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: play.c,v 1.11 2009/05/24 21:44:56 dholland Exp $");
+__RCSID("$NetBSD: play.c,v 1.12 2009/08/12 08:54:54 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -43,6 +43,8 @@ __RCSID("$NetBSD: play.c,v 1.11 2009/05/24 21:44:56 dholland Exp $");
 #include "trek.h"
 #include "getpar.h"
 
+static void myreset(int) __dead;
+
 /*
 **  INSTRUCTION READ AND MAIN PLAY LOOP
 **
@@ -56,7 +58,7 @@ __RCSID("$NetBSD: play.c,v 1.11 2009/05/24 21:44:56 dholland Exp $");
 
 extern jmp_buf env;
 
-const struct cvntab    Comtab[] = {
+static const struct cvntab Comtab[] = {
        { "abandon",            "",             abandon,        0 },
        { "ca",                 "pture",        capture,        0 },
        { "cl",                 "oak",          shield,         -1 },
@@ -84,7 +86,7 @@ const struct cvntab   Comtab[] = {
 };
 
 /*ARGSUSED*/
-void
+static void
 myreset(int v __unused)
 {