summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-02-14 10:28:18 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-02-14 10:28:18 +0000
commit874deecf27e00aa687cae3a54ab11c2cd6162785 (patch)
treed5e6483a824b30c8a1536c909ec2904f22733fdf
parent864ab5f6b1dea0318ac16c95ee2a7b998ffcddc1 (diff)
Use standard header files instead of declaring system funcs explicitly
-rw-r--r--games/bs/bs.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/games/bs/bs.c b/games/bs/bs.c
index bf2cf8a49ec..ba74767b772 100644
--- a/games/bs/bs.c
+++ b/games/bs/bs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bs.c,v 1.3 1996/12/22 20:01:00 deraadt Exp $ */
+/* $OpenBSD: bs.c,v 1.4 1997/02/14 10:28:17 niklas Exp $ */
/*
* bs.c - original author: Bruce Holloway
* salvo option by: Chuck A DeGaul
@@ -8,10 +8,13 @@
* v2.0 featuring strict ANSI/POSIX conformance, November 1993.
*/
+#include <assert.h>
+#include <ctype.h>
#include <curses.h>
#include <signal.h>
-#include <ctype.h>
-#include <assert.h>
+#include <stdlib.h>
+#include <string.h>
+#include <time.h>
#ifndef A_UNDERLINE /* BSD curses */
#define beep() write(1,"\007",1);
@@ -25,10 +28,7 @@
#ifdef isxdigit /* aha, must be an AT&T system... */
#define srand(n) srand48(n)
#define rand() lrand48()
-extern long lrand48();
-extern void srand48();
#define bzero(s, n) (void)memset((char *)(s), '\0', n)
-extern char *memset();
/*
* Try this if ungetch() fails to resolve.
*
@@ -36,11 +36,6 @@ extern char *memset();
*/
#endif /* isxdigit */
-extern unsigned sleep();
-extern char *strchr(), *strcpy();
-extern long time();
-extern void exit();
-
static bool checkplace();
/*