diff options
author | mestre <mestre@cvs.openbsd.org> | 2016-01-03 14:38:18 +0000 |
---|---|---|
committer | mestre <mestre@cvs.openbsd.org> | 2016-01-03 14:38:18 +0000 |
commit | d9acce1f8555317f19d4bc565896a366a2dc64df (patch) | |
tree | f2fd0a3dc00b9d454e9c2ec8dadcfdabe4be0783 /games/worm | |
parent | 27270dae2fe0dbc4518b029a0bffce35ce1ea77e (diff) |
About 13 years ago when the idiom srandom(time()), and sometimes
srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h>
lived up until this day so remove it.
Additionally, earlier than that, 18 years ago, random(6) was one of the first
consumers of arc4random(3) family, and was pulling it from dev/rndvar.h but
these days we pull it from stdlib.h, which is already done, so while here
remove dev/rndvar.h also.
"seems comprehensive to me" deraadt@ and OK tb@
Diffstat (limited to 'games/worm')
-rw-r--r-- | games/worm/worm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/worm/worm.c b/games/worm/worm.c index aa8d77f0a78..731b83a94e7 100644 --- a/games/worm/worm.c +++ b/games/worm/worm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: worm.c,v 1.35 2015/12/26 00:26:40 mestre Exp $ */ +/* $OpenBSD: worm.c,v 1.36 2016/01/03 14:38:17 mestre Exp $ */ /* * Copyright (c) 1980, 1993 @@ -35,13 +35,13 @@ */ #include <sys/types.h> + #include <ctype.h> #include <curses.h> #include <err.h> #include <signal.h> #include <stdlib.h> #include <string.h> -#include <time.h> #include <unistd.h> #include <poll.h> |