]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - trek/help.c
Get all the games compiling for iOS
[bsdgames-darwin.git] / trek / help.c
index 027f7aa856e6420f91cd7d568730151024a32551..16b4716aab8ed0900e21aad9d69fbb06fbeae2b1 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: help.c,v 1.11 2009/05/24 21:44:56 dholland Exp $       */
+/*     $NetBSD: help.c,v 1.13 2009/08/12 08:54:54 dholland Exp $       */
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)help.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: help.c,v 1.11 2009/05/24 21:44:56 dholland Exp $");
+__RCSID("$NetBSD: help.c,v 1.13 2009/08/12 08:54:54 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -64,7 +64,7 @@ __RCSID("$NetBSD: help.c,v 1.11 2009/05/24 21:44:56 dholland Exp $");
 **     to drop you.  After that, it's your problem.
 */
 
-const char *const Cntvect[3] = {
+static const char *const Cntvect[3] = {
        "first", "second", "third"
 };
 
@@ -140,7 +140,8 @@ help(int v __unused)
                                if (dx < 0 || dx >= NSECTS)
                                        continue;
                                dy = Etc.starbase.y + ranf(3) - 1;
-                               if (dy < 0 || dy >= NSECTS || Sect[dx][dy] != EMPTY)
+                               if (dy < 0 || dy >= NSECTS ||
+                                   Sect[dx][dy] != EMPTY)
                                        continue;
                                break;
                        }