Module Name: src
Committed By: dholland
Date: Wed Aug 12 08:57:30 UTC 2009
Modified Files:
src/games/worms: worms.c
Log Message:
sprinkle static
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/games/worms/worms.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/worms/worms.c
diff -u src/games/worms/worms.c:1.19 src/games/worms/worms.c:1.20
--- src/games/worms/worms.c:1.19 Fri Aug 8 16:10:47 2008
+++ src/games/worms/worms.c Wed Aug 12 08:57:30 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: worms.c,v 1.19 2008/08/08 16:10:47 drochner Exp $ */
+/* $NetBSD: worms.c,v 1.20 2009/08/12 08:57:30 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: worms.c,v 1.19 2008/08/08 16:10:47 drochner Exp $");
+__RCSID("$NetBSD: worms.c,v 1.20 2009/08/12 08:57:30 dholland Exp $");
#endif
#endif /* not lint */
@@ -177,11 +177,11 @@
short *xpos, *ypos;
} *worm;
-volatile sig_atomic_t sig_caught = 0;
+static volatile sig_atomic_t sig_caught = 0;
int main(int, char **);
-void nomem(void) __dead;
-void onsig(int);
+static void nomem(void) __dead;
+static void onsig(int);
int
main(argc, argv)
@@ -339,14 +339,14 @@
}
}
-void
+static void
onsig(signo)
int signo __unused;
{
sig_caught = 1;
}
-void
+static void
nomem()
{
errx(1, "not enough memory.");