summaryrefslogtreecommitdiffstats
path: root/games/backgammon
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2016-01-03 14:38:16 +0000
committermestre <mestre@openbsd.org>2016-01-03 14:38:16 +0000
commit9ea8ec706f2f03d68b523542bd48faf2fabf1785 (patch)
tree5bbae6c11577f11e47a01c75667c0c6ae2e7b05e /games/backgammon
parentRemove obsolete and undocumented "-carpdev" option, from Fabian Raetz. (diff)
downloadwireguard-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/backgammon')
-rw-r--r--games/backgammon/backgammon/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/backgammon/backgammon/main.c b/games/backgammon/backgammon/main.c
index a8e5e982993..6d576292a2e 100644
--- a/games/backgammon/backgammon/main.c
+++ b/games/backgammon/backgammon/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.22 2015/12/02 20:05:01 tb Exp $ */
+/* $OpenBSD: main.c,v 1.23 2016/01/03 14:38:16 mestre Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -30,7 +30,7 @@
*/
#include <err.h>
-#include <time.h>
+
#include "back.h"
#include "backlocal.h"