summaryrefslogtreecommitdiffstats
path: root/sail/dr_main.c
diff options
context:
space:
mode:
authorjwise <jwise@NetBSD.org>2001-01-01 21:57:37 +0000
committerjwise <jwise@NetBSD.org>2001-01-01 21:57:37 +0000
commita6e8d8ed2cbb18fa9d9277395a46a38295b2d6bf (patch)
treeed347bc8d547f2e0d34db81f6ff04de08dd221ff /sail/dr_main.c
parentd4fc452126cfb5931b27328e3cb0196d46e00cd5 (diff)
downloadbsdgames-darwin-a6e8d8ed2cbb18fa9d9277395a46a38295b2d6bf.tar.gz
bsdgames-darwin-a6e8d8ed2cbb18fa9d9277395a46a38295b2d6bf.tar.zst
bsdgames-darwin-a6e8d8ed2cbb18fa9d9277395a46a38295b2d6bf.zip
ANSIfy in preparation for further work.
Diffstat (limited to 'sail/dr_main.c')
-rw-r--r--sail/dr_main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sail/dr_main.c b/sail/dr_main.c
index 38bb33ec..4e7778c9 100644
--- a/sail/dr_main.c
+++ b/sail/dr_main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dr_main.c,v 1.6 2000/02/09 22:27:55 jsm Exp $ */
+/* $NetBSD: dr_main.c,v 1.7 2001/01/01 21:57:38 jwise Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)dr_main.c 8.2 (Berkeley) 4/16/94";
#else
-__RCSID("$NetBSD: dr_main.c,v 1.6 2000/02/09 22:27:55 jsm Exp $");
+__RCSID("$NetBSD: dr_main.c,v 1.7 2001/01/01 21:57:38 jwise Exp $");
#endif
#endif /* not lint */
@@ -47,16 +47,16 @@ __RCSID("$NetBSD: dr_main.c,v 1.6 2000/02/09 22:27:55 jsm Exp $");
#include <unistd.h>
int
-dr_main()
+dr_main(void)
{
int n;
struct ship *sp;
int nat[NNATION];
int value = 0;
- (void) signal(SIGINT, SIG_IGN);
- (void) signal(SIGQUIT, SIG_IGN);
- (void) signal(SIGTSTP, SIG_IGN);
+ signal(SIGINT, SIG_IGN);
+ signal(SIGQUIT, SIG_IGN);
+ signal(SIGTSTP, SIG_IGN);
if (game < 0 || game >= NSCENE) {
fprintf(stderr, "DRIVER: Bad game number %d\n", game);
exit(1);
@@ -72,7 +72,7 @@ dr_main()
foreachship(sp) {
if (sp->file == NULL &&
(sp->file = (struct File *)calloc(1, sizeof (struct File))) == NULL) {
- (void) fprintf(stderr, "DRIVER: Out of memory.\n");
+ fprintf(stderr, "DRIVER: Out of memory.\n");
exit(1);
}
sp->file->index = sp - SHIP(0);