summaryrefslogtreecommitdiff
path: root/games/bs
diff options
context:
space:
mode:
authormestre <mestre@cvs.openbsd.org>2016-01-03 14:38:18 +0000
committermestre <mestre@cvs.openbsd.org>2016-01-03 14:38:18 +0000
commitd9acce1f8555317f19d4bc565896a366a2dc64df (patch)
treef2fd0a3dc00b9d454e9c2ec8dadcfdabe4be0783 /games/bs
parent27270dae2fe0dbc4518b029a0bffce35ce1ea77e (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/bs')
-rw-r--r--games/bs/bs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/games/bs/bs.c b/games/bs/bs.c
index 711c33ec016..bbbb06c6298 100644
--- a/games/bs/bs.c
+++ b/games/bs/bs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bs.c,v 1.34 2015/12/26 00:26:39 mestre Exp $ */
+/* $OpenBSD: bs.c,v 1.35 2016/01/03 14:38:17 mestre Exp $ */
/*
* Copyright (c) 1986, Bruce Holloway
* All rights reserved.
@@ -47,7 +47,6 @@
#include <signal.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
typedef struct {