diff options
author | ache <ache@FreeBSD.org> | 1997-09-24 21:16:13 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-09-24 21:16:13 +0000 |
commit | afaf9afc770cd1bbebdb697eb10dc8687c89f8e1 (patch) | |
tree | f34fae24197a7234769b21a63768525d0d783018 /games | |
parent | b78f1ac8f70ca1f0efbe3550033c95ec667677c3 (diff) | |
download | FreeBSD-src-afaf9afc770cd1bbebdb697eb10dc8687c89f8e1.zip FreeBSD-src-afaf9afc770cd1bbebdb697eb10dc8687c89f8e1.tar.gz |
Cleanup.
Initialize random
Diffstat (limited to 'games')
-rw-r--r-- | games/rain/rain.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/games/rain/rain.c b/games/rain/rain.c index c79bb1c..55ecbbe 100644 --- a/games/rain/rain.c +++ b/games/rain/rain.c @@ -54,6 +54,9 @@ static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93"; #include <sgtty.h> #endif #include <signal.h> +#include <termcap.h> +#include <stdlib.h> +#include <string.h> #define cursor(c, r) tputs(tgoto(CM, c, r), 1, fputchar) @@ -64,7 +67,7 @@ static struct sgttyb sg, old_tty; #endif int fputchar(); -char *LL, *TE, *tgoto(); +char *LL, *TE; main(argc, argv) int argc; @@ -74,9 +77,8 @@ main(argc, argv) extern char *UP; register int x, y, j; register char *CM, *BC, *DN, *ND, *term; - char *TI, *tcp, *mp, tcb[100], - *malloc(), *getenv(), *strcpy(), *tgetstr(); - long cols, lines, random(); + char *TI, *tcp, *mp, tcb[100]; + long cols, lines; int xpos[5], ypos[5]; static void onsig(); @@ -119,6 +121,7 @@ main(argc, argv) } (void)strcpy(LL, tgoto(CM, 0, 23)); } + srandomdev(); #ifdef USG ioctl(1, TCGETA, &sg); ospeed = sg.c_cflag&CBAUD; |