summaryrefslogtreecommitdiff
path: root/games/quiz
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/quiz
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/quiz')
-rw-r--r--games/quiz/quiz.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/games/quiz/quiz.c b/games/quiz/quiz.c
index 704d3c2bdd8..ab89af26034 100644
--- a/games/quiz/quiz.c
+++ b/games/quiz/quiz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quiz.c,v 1.24 2015/12/25 20:59:09 mestre Exp $ */
+/* $OpenBSD: quiz.c,v 1.25 2016/01/03 14:38:17 mestre Exp $ */
/* $NetBSD: quiz.c,v 1.9 1995/04/22 10:16:58 cgd Exp $ */
/*-
@@ -35,16 +35,17 @@
*/
#include <sys/types.h>
+
+#include <ctype.h>
+#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
-#include <err.h>
-#include <time.h>
#include <unistd.h>
-#include "quiz.h"
+
#include "pathnames.h"
+#include "quiz.h"
static QE qlist;
static int catone, cattwo, tflag;