diff options
author | lukem <lukem@NetBSD.org> | 1997-10-12 02:03:45 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-12 02:03:45 +0000 |
commit | 97701376dead7753607380b36cc8c6ca5b06528e (patch) | |
tree | e55cddf6fa923df8cf644f78fa037193dff67276 /tetris/tetris.c | |
parent | 80379c039e586e212d931ae2ab9e91611c6ac5e9 (diff) | |
download | bsdgames-darwin-97701376dead7753607380b36cc8c6ca5b06528e.tar.gz bsdgames-darwin-97701376dead7753607380b36cc8c6ca5b06528e.tar.zst bsdgames-darwin-97701376dead7753607380b36cc8c6ca5b06528e.zip |
minor WARNSify
Diffstat (limited to 'tetris/tetris.c')
-rw-r--r-- | tetris/tetris.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tetris/tetris.c b/tetris/tetris.c index ababeeda..63090dbe 100644 --- a/tetris/tetris.c +++ b/tetris/tetris.c @@ -1,4 +1,4 @@ -/* $NetBSD: tetris.c,v 1.2 1995/04/22 07:42:47 cgd Exp $ */ +/* $NetBSD: tetris.c,v 1.3 1997/10/12 02:03:48 lukem Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -38,10 +38,10 @@ * @(#)tetris.c 8.1 (Berkeley) 5/31/93 */ +#include <sys/cdefs.h> #ifndef lint -static char copyright[] = -"@(#) Copyright (c) 1992, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; +__COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); #endif /* not lint */ /* @@ -61,8 +61,11 @@ static char copyright[] = #include "screen.h" #include "tetris.h" -void onintr __P((int)); -void usage __P((void)); +static void elide __P((void)); +static void setup_board __P((void)); + int main __P((int, char **)); + void onintr __P((int)); + void usage __P((void)); /* * Set up the initial board. The bottom display row is completely set, @@ -126,7 +129,7 @@ main(argc, argv) keys = "jkl pq"; - while ((ch = getopt(argc, argv, "k:l:s")) != EOF) + while ((ch = getopt(argc, argv, "k:l:s")) != -1) switch(ch) { case 'k': if (strlen(keys = optarg) != 6) |