From: niklas Date: Fri, 14 Feb 1997 10:28:17 +0000 (+0000) Subject: Use standard header files instead of declaring system funcs explicitly X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f7d92492fdd0ec7c0faca31d469424ad0d2d762a;p=openbsd Use standard header files instead of declaring system funcs explicitly --- 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 +#include #include #include -#include -#include +#include +#include +#include #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(); /*