summaryrefslogtreecommitdiff
path: root/games/battlestar
diff options
context:
space:
mode:
authormestre <mestre@cvs.openbsd.org>2015-12-31 17:51:20 +0000
committermestre <mestre@cvs.openbsd.org>2015-12-31 17:51:20 +0000
commit0f51bc6c3938b9e7a696860dd066f71306cd9e49 (patch)
tree9df25472d7c8b637d3b31d0a392d3fd029d02891 /games/battlestar
parenta26c0943f8d31b5038c84fda37876e6eae285e7e (diff)
Include only needed header files per each source file
OK tb@
Diffstat (limited to 'games/battlestar')
-rw-r--r--games/battlestar/battlestar.c6
-rw-r--r--games/battlestar/com1.c6
-rw-r--r--games/battlestar/com2.c5
-rw-r--r--games/battlestar/com3.c4
-rw-r--r--games/battlestar/com4.c4
-rw-r--r--games/battlestar/com5.c5
-rw-r--r--games/battlestar/com6.c10
-rw-r--r--games/battlestar/com7.c5
-rw-r--r--games/battlestar/cypher.c8
-rw-r--r--games/battlestar/extern.h14
-rw-r--r--games/battlestar/fly.c9
-rw-r--r--games/battlestar/getcom.c6
-rw-r--r--games/battlestar/init.c9
-rw-r--r--games/battlestar/parse.c5
-rw-r--r--games/battlestar/room.c4
-rw-r--r--games/battlestar/save.c7
16 files changed, 78 insertions, 29 deletions
diff --git a/games/battlestar/battlestar.c b/games/battlestar/battlestar.c
index 2c9368eaea4..d65ca855e52 100644
--- a/games/battlestar/battlestar.c
+++ b/games/battlestar/battlestar.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: battlestar.c,v 1.18 2015/12/04 17:34:40 tb Exp $ */
+/* $OpenBSD: battlestar.c,v 1.19 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: battlestar.c,v 1.3 1995/03/21 15:06:47 cgd Exp $ */
/*
@@ -37,6 +37,10 @@
* on the Cory PDP-11/70, University of California, Berkeley.
*/
+#include <err.h>
+#include <string.h>
+#include <unistd.h>
+
#include "extern.h"
#include "pathnames.h"
diff --git a/games/battlestar/com1.c b/games/battlestar/com1.c
index 037a0e9f448..38172eecb10 100644
--- a/games/battlestar/com1.c
+++ b/games/battlestar/com1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com1.c,v 1.14 2009/10/27 23:59:23 deraadt Exp $ */
+/* $OpenBSD: com1.c,v 1.15 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: com1.c,v 1.3 1995/03/21 15:06:51 cgd Exp $ */
/*
@@ -30,6 +30,10 @@
* SUCH DAMAGE.
*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
#include "extern.h"
int
diff --git a/games/battlestar/com2.c b/games/battlestar/com2.c
index ea46a8821a1..d26590dbe72 100644
--- a/games/battlestar/com2.c
+++ b/games/battlestar/com2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com2.c,v 1.17 2009/12/10 23:53:03 beck Exp $ */
+/* $OpenBSD: com2.c,v 1.18 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: com2.c,v 1.3 1995/03/21 15:06:55 cgd Exp $ */
/*
@@ -30,6 +30,9 @@
* SUCH DAMAGE.
*/
+#include <stdio.h>
+#include <stdlib.h>
+
#include "extern.h"
int
diff --git a/games/battlestar/com3.c b/games/battlestar/com3.c
index f8089dcc7a8..ff4d1ec0371 100644
--- a/games/battlestar/com3.c
+++ b/games/battlestar/com3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com3.c,v 1.13 2009/10/27 23:59:23 deraadt Exp $ */
+/* $OpenBSD: com3.c,v 1.14 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: com3.c,v 1.3 1995/03/21 15:07:00 cgd Exp $ */
/*
@@ -30,6 +30,8 @@
* SUCH DAMAGE.
*/
+#include <stdio.h>
+
#include "extern.h"
void
diff --git a/games/battlestar/com4.c b/games/battlestar/com4.c
index e579377c8d3..33a9bd34ef4 100644
--- a/games/battlestar/com4.c
+++ b/games/battlestar/com4.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com4.c,v 1.14 2009/10/27 23:59:23 deraadt Exp $ */
+/* $OpenBSD: com4.c,v 1.15 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: com4.c,v 1.3 1995/03/21 15:07:04 cgd Exp $ */
/*
@@ -30,6 +30,8 @@
* SUCH DAMAGE.
*/
+#include <stdio.h>
+
#include "extern.h"
int
diff --git a/games/battlestar/com5.c b/games/battlestar/com5.c
index e9b7af885e3..284aebc841c 100644
--- a/games/battlestar/com5.c
+++ b/games/battlestar/com5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com5.c,v 1.12 2009/10/27 23:59:23 deraadt Exp $ */
+/* $OpenBSD: com5.c,v 1.13 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: com5.c,v 1.3 1995/03/21 15:07:07 cgd Exp $ */
/*
@@ -30,6 +30,9 @@
* SUCH DAMAGE.
*/
+#include <stdio.h>
+#include <stdlib.h>
+
#include "extern.h"
void
diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c
index 856ea3b4d07..238cdab059c 100644
--- a/games/battlestar/com6.c
+++ b/games/battlestar/com6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com6.c,v 1.21 2015/12/04 17:34:40 tb Exp $ */
+/* $OpenBSD: com6.c,v 1.22 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: com6.c,v 1.5 1995/04/27 21:30:23 mycroft Exp $ */
/*
@@ -30,8 +30,14 @@
* SUCH DAMAGE.
*/
+#include <err.h>
+#include <errno.h>
+#include <limits.h>
+#include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
+
#include "extern.h"
-#include "pathnames.h"
int
launch(void)
diff --git a/games/battlestar/com7.c b/games/battlestar/com7.c
index e4be849f77b..192499973e9 100644
--- a/games/battlestar/com7.c
+++ b/games/battlestar/com7.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com7.c,v 1.12 2009/10/27 23:59:23 deraadt Exp $ */
+/* $OpenBSD: com7.c,v 1.13 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: com7.c,v 1.3 1995/03/21 15:07:12 cgd Exp $ */
/*
@@ -30,6 +30,9 @@
* SUCH DAMAGE.
*/
+#include <stdio.h>
+#include <stdlib.h>
+
#include "extern.h"
int
diff --git a/games/battlestar/cypher.c b/games/battlestar/cypher.c
index 1b8e2b123a2..8ca2ac6f4d0 100644
--- a/games/battlestar/cypher.c
+++ b/games/battlestar/cypher.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cypher.c,v 1.18 2015/10/24 17:20:17 mmcc Exp $ */
+/* $OpenBSD: cypher.c,v 1.19 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: cypher.c,v 1.3 1995/03/21 15:07:15 cgd Exp $ */
/*
@@ -30,7 +30,13 @@
* SUCH DAMAGE.
*/
+#include <ctype.h>
+#include <err.h>
+#include <limits.h>
#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "extern.h"
#include "pathnames.h"
diff --git a/games/battlestar/extern.h b/games/battlestar/extern.h
index 1d6bde56fb0..f3f1200b8bb 100644
--- a/games/battlestar/extern.h
+++ b/games/battlestar/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.19 2015/12/26 00:26:39 mestre Exp $ */
+/* $OpenBSD: extern.h,v 1.20 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: extern.h,v 1.5 1995/04/24 12:22:18 cgd Exp $ */
/*
@@ -32,17 +32,7 @@
* @(#)extern.h 8.1 (Berkeley) 5/31/93
*/
-#include <sys/time.h>
-
-#include <ctype.h>
-#include <err.h>
-#include <errno.h>
-#include <limits.h>
-#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
+#include <sys/types.h>
#define BITS (8 * sizeof (int))
diff --git a/games/battlestar/fly.c b/games/battlestar/fly.c
index 3a4212d5f17..1b08f1735fb 100644
--- a/games/battlestar/fly.c
+++ b/games/battlestar/fly.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fly.c,v 1.13 2009/10/27 23:59:24 deraadt Exp $ */
+/* $OpenBSD: fly.c,v 1.14 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: fly.c,v 1.3 1995/03/21 15:07:28 cgd Exp $ */
/*
@@ -30,9 +30,14 @@
* SUCH DAMAGE.
*/
+#include <curses.h>
+#include <signal.h>
+#include <stdlib.h>
+#include <unistd.h>
+
#include "extern.h"
+
#undef UP
-#include <curses.h>
#define MIDR (LINES/2 - 1)
#define MIDC (COLS/2 - 1)
diff --git a/games/battlestar/getcom.c b/games/battlestar/getcom.c
index 89968c8c1be..556c16310cb 100644
--- a/games/battlestar/getcom.c
+++ b/games/battlestar/getcom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getcom.c,v 1.15 2015/10/24 17:20:17 mmcc Exp $ */
+/* $OpenBSD: getcom.c,v 1.16 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: getcom.c,v 1.3 1995/03/21 15:07:30 cgd Exp $ */
/*
@@ -30,6 +30,10 @@
* SUCH DAMAGE.
*/
+#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+
#include "extern.h"
char *
diff --git a/games/battlestar/init.c b/games/battlestar/init.c
index 39baca298a9..195cd498877 100644
--- a/games/battlestar/init.c
+++ b/games/battlestar/init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init.c,v 1.15 2015/11/29 15:31:06 tb Exp $ */
+/* $OpenBSD: init.c,v 1.16 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: init.c,v 1.4 1995/03/21 15:07:35 cgd Exp $ */
/*
@@ -30,6 +30,13 @@
* SUCH DAMAGE.
*/
+#include <err.h>
+#include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
#include "extern.h"
static int checkout(const char *);
diff --git a/games/battlestar/parse.c b/games/battlestar/parse.c
index f80bbbbb8da..ff6b9f8309a 100644
--- a/games/battlestar/parse.c
+++ b/games/battlestar/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.15 2009/10/27 23:59:24 deraadt Exp $ */
+/* $OpenBSD: parse.c,v 1.16 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: parse.c,v 1.3 1995/03/21 15:07:48 cgd Exp $ */
/*
@@ -30,6 +30,9 @@
* SUCH DAMAGE.
*/
+#include <stdio.h>
+#include <string.h>
+
#include "extern.h"
#define HASHSIZE 256
diff --git a/games/battlestar/room.c b/games/battlestar/room.c
index 3d59b56047d..4df0f47665a 100644
--- a/games/battlestar/room.c
+++ b/games/battlestar/room.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: room.c,v 1.10 2014/10/26 07:03:47 brad Exp $ */
+/* $OpenBSD: room.c,v 1.11 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: room.c,v 1.3 1995/03/21 15:07:54 cgd Exp $ */
/*
@@ -30,6 +30,8 @@
* SUCH DAMAGE.
*/
+#include <stdio.h>
+
#include "extern.h"
void
diff --git a/games/battlestar/save.c b/games/battlestar/save.c
index e347b9e58fc..088bb2d2c5c 100644
--- a/games/battlestar/save.c
+++ b/games/battlestar/save.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: save.c,v 1.12 2015/08/22 14:47:41 deraadt Exp $ */
+/* $OpenBSD: save.c,v 1.13 2015/12/31 17:51:19 mestre Exp $ */
/* $NetBSD: save.c,v 1.3 1995/03/21 15:07:57 cgd Exp $ */
/*
@@ -30,6 +30,11 @@
* SUCH DAMAGE.
*/
+#include <err.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
#include "extern.h"
void