summaryrefslogtreecommitdiffstats
path: root/battlestar/battlestar.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-10 11:39:08 +0000
committerlukem <lukem@NetBSD.org>1997-10-10 11:39:08 +0000
commitb4bb83fd34ab5386afa1b8af8e0956ff7953d0e0 (patch)
tree5cd3c69d8e6d56c42128666f35ceed56746ed1d2 /battlestar/battlestar.c
parent7016350ffcce57245468046bd3e36559e2684dca (diff)
downloadbsdgames-darwin-b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0.tar.gz
bsdgames-darwin-b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0.tar.zst
bsdgames-darwin-b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0.zip
WARNSify
Diffstat (limited to 'battlestar/battlestar.c')
-rw-r--r--battlestar/battlestar.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/battlestar/battlestar.c b/battlestar/battlestar.c
index 6eb0bc06..6260e6cf 100644
--- a/battlestar/battlestar.c
+++ b/battlestar/battlestar.c
@@ -1,4 +1,4 @@
-/* $NetBSD: battlestar.c,v 1.4 1997/01/07 11:56:32 tls Exp $ */
+/* $NetBSD: battlestar.c,v 1.5 1997/10/10 11:39:12 lukem Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -33,17 +33,17 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
-static char copyright[] =
-"@(#) Copyright (c) 1983, 1993\n\
- The Regents of the University of California. All rights reserved.\n";
+__COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
+ The Regents of the University of California. All rights reserved.\n");
#endif /* not lint */
#ifndef lint
#if 0
static char sccsid[] = "@(#)battlestar.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$NetBSD: battlestar.c,v 1.4 1997/01/07 11:56:32 tls Exp $";
+__RCSID("$NetBSD: battlestar.c,v 1.5 1997/10/10 11:39:12 lukem Exp $");
#endif
#endif /* not lint */
@@ -56,9 +56,12 @@ static char rcsid[] = "$NetBSD: battlestar.c,v 1.4 1997/01/07 11:56:32 tls Exp $
#include "extern.h"
+int main __P((int, char *[]));
+
+int
main(argc,argv)
-int argc;
-char **argv;
+ int argc;
+ char **argv;
{
char mainbuf[LINELENGTH];
char *next;
@@ -92,6 +95,6 @@ run:
case 0:
goto start;
default:
- exit();
+ exit(0);
}
}