diff options
author | mestre <mestre@openbsd.org> | 2016-01-03 14:38:16 +0000 |
---|---|---|
committer | mestre <mestre@openbsd.org> | 2016-01-03 14:38:16 +0000 |
commit | 9ea8ec706f2f03d68b523542bd48faf2fabf1785 (patch) | |
tree | 5bbae6c11577f11e47a01c75667c0c6ae2e7b05e /games/snake | |
parent | Remove obsolete and undocumented "-carpdev" option, from Fabian Raetz. (diff) | |
download | wireguard-openbsd-9ea8ec706f2f03d68b523542bd48faf2fabf1785.tar.xz wireguard-openbsd-9ea8ec706f2f03d68b523542bd48faf2fabf1785.zip |
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/snake')
-rw-r--r-- | games/snake/snake.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/games/snake/snake.c b/games/snake/snake.c index 5ea9636e6b3..62cfcc2ae00 100644 --- a/games/snake/snake.c +++ b/games/snake/snake.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snake.c,v 1.20 2015/12/02 18:52:23 tb Exp $ */ +/* $OpenBSD: snake.c,v 1.21 2016/01/03 14:38:17 mestre Exp $ */ /* $NetBSD: snake.c,v 1.8 1995/04/29 00:06:41 mycroft Exp $ */ /* @@ -55,7 +55,6 @@ #include <stdlib.h> #include <string.h> #include <termios.h> -#include <time.h> #include <unistd.h> #ifdef DEBUG |