summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2016-09-11 14:21:17 +0000
committertb <tb@openbsd.org>2016-09-11 14:21:17 +0000
commitee7acb09aaf271db7965339e3b41e269df1a9494 (patch)
tree5fe803798fcc1d879d99b8a293cbc0551e8c475e
parentInstall binaries, scripts and documentation with the usual owner/group/mode. (diff)
downloadwireguard-openbsd-ee7acb09aaf271db7965339e3b41e269df1a9494.tar.xz
wireguard-openbsd-ee7acb09aaf271db7965339e3b41e269df1a9494.zip
Callers of time(3) should #include <time.h>.
ok deraadt
-rw-r--r--games/arithmetic/arithmetic.c3
-rw-r--r--games/atc/log.c3
-rw-r--r--games/atc/main.c3
-rw-r--r--games/battlestar/com6.c3
-rw-r--r--games/boggle/boggle/mach.c3
-rw-r--r--games/canfield/canfield/canfield.c3
-rw-r--r--games/hack/hack.unix.c3
-rw-r--r--games/mille/save.c3
-rw-r--r--games/monop/execute.c3
-rw-r--r--games/pom/pom.c3
-rw-r--r--games/sail/sync.c3
-rw-r--r--games/snake/snake.c3
12 files changed, 24 insertions, 12 deletions
diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c
index bef0cf7feb0..50cd8acd4e5 100644
--- a/games/arithmetic/arithmetic.c
+++ b/games/arithmetic/arithmetic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arithmetic.c,v 1.26 2016/01/27 13:42:08 gsoares Exp $ */
+/* $OpenBSD: arithmetic.c,v 1.27 2016/09/11 14:21:17 tb Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -67,6 +67,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
int getrandom(int, int, int);
diff --git a/games/atc/log.c b/games/atc/log.c
index efbd3b416dd..dfe7a03ecd3 100644
--- a/games/atc/log.c
+++ b/games/atc/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.22 2016/03/16 15:00:35 mestre Exp $ */
+/* $OpenBSD: log.c,v 1.23 2016/09/11 14:21:17 tb Exp $ */
/* $NetBSD: log.c,v 1.3 1995/03/21 15:04:21 cgd Exp $ */
/*-
@@ -50,6 +50,7 @@
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#include "extern.h"
diff --git a/games/atc/main.c b/games/atc/main.c
index 34262767bdd..8c38160b1cc 100644
--- a/games/atc/main.c
+++ b/games/atc/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.29 2016/03/07 13:48:25 jmc Exp $ */
+/* $OpenBSD: main.c,v 1.30 2016/09/11 14:21:17 tb Exp $ */
/* $NetBSD: main.c,v 1.4 1995/04/27 21:22:25 mycroft Exp $ */
/*-
@@ -47,6 +47,7 @@
#include <stdlib.h>
#include <string.h>
#include <termios.h>
+#include <time.h>
#include <unistd.h>
#include "extern.h"
diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c
index 238cdab059c..b13b5607eb1 100644
--- a/games/battlestar/com6.c
+++ b/games/battlestar/com6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com6.c,v 1.22 2015/12/31 17:51:19 mestre Exp $ */
+/* $OpenBSD: com6.c,v 1.23 2016/09/11 14:21:17 tb Exp $ */
/* $NetBSD: com6.c,v 1.5 1995/04/27 21:30:23 mycroft Exp $ */
/*
@@ -36,6 +36,7 @@
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
+#include <time.h>
#include "extern.h"
diff --git a/games/boggle/boggle/mach.c b/games/boggle/boggle/mach.c
index 9c356f073c6..ccd3bf1d43d 100644
--- a/games/boggle/boggle/mach.c
+++ b/games/boggle/boggle/mach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mach.c,v 1.21 2016/01/10 14:10:38 mestre Exp $ */
+/* $OpenBSD: mach.c,v 1.22 2016/09/11 14:21:17 tb Exp $ */
/* $NetBSD: mach.c,v 1.5 1995/04/28 22:28:48 mycroft Exp $ */
/*-
@@ -47,6 +47,7 @@
#include <stdlib.h>
#include <string.h>
#include <termios.h>
+#include <time.h>
#include "bog.h"
#include "extern.h"
diff --git a/games/canfield/canfield/canfield.c b/games/canfield/canfield/canfield.c
index aa08fb9d09f..5af1631bf76 100644
--- a/games/canfield/canfield/canfield.c
+++ b/games/canfield/canfield/canfield.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: canfield.c,v 1.26 2016/01/10 13:35:09 mestre Exp $ */
+/* $OpenBSD: canfield.c,v 1.27 2016/09/11 14:21:17 tb Exp $ */
/* $NetBSD: canfield.c,v 1.7 1995/05/13 07:28:35 jtc Exp $ */
/*
@@ -50,6 +50,7 @@
#include <signal.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#define decksize 52
diff --git a/games/hack/hack.unix.c b/games/hack/hack.unix.c
index 92f6f754cb5..a1fdd5a29f5 100644
--- a/games/hack/hack.unix.c
+++ b/games/hack/hack.unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.unix.c,v 1.19 2016/03/15 19:56:20 mestre Exp $ */
+/* $OpenBSD: hack.unix.c,v 1.20 2016/09/11 14:21:17 tb Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -80,6 +80,7 @@
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
+#include <time.h>
#include <unistd.h>
#include "hack.h"
diff --git a/games/mille/save.c b/games/mille/save.c
index a495f69146f..2d620fa4e1a 100644
--- a/games/mille/save.c
+++ b/games/mille/save.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: save.c,v 1.12 2016/01/08 18:09:59 mestre Exp $ */
+/* $OpenBSD: save.c,v 1.13 2016/09/11 14:21:18 tb Exp $ */
/* $NetBSD: save.c,v 1.4 1995/03/24 05:02:13 cgd Exp $ */
/*
@@ -36,6 +36,7 @@
#include <errno.h>
#include <fcntl.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#include "mille.h"
diff --git a/games/monop/execute.c b/games/monop/execute.c
index cdc25ae8158..4bea091af72 100644
--- a/games/monop/execute.c
+++ b/games/monop/execute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: execute.c,v 1.13 2016/01/08 18:20:33 mestre Exp $ */
+/* $OpenBSD: execute.c,v 1.14 2016/09/11 14:21:18 tb Exp $ */
/* $NetBSD: execute.c,v 1.3 1995/03/23 08:34:38 cgd Exp $ */
/*
@@ -36,6 +36,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include "monop.ext"
diff --git a/games/pom/pom.c b/games/pom/pom.c
index a79b43108c3..20dcaa69d83 100644
--- a/games/pom/pom.c
+++ b/games/pom/pom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pom.c,v 1.23 2016/08/27 02:02:44 guenther Exp $ */
+/* $OpenBSD: pom.c,v 1.24 2016/09/11 14:21:18 tb Exp $ */
/* $NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $ */
/*
@@ -51,6 +51,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#ifndef M_PI
diff --git a/games/sail/sync.c b/games/sail/sync.c
index 58138fdf300..547b7121747 100644
--- a/games/sail/sync.c
+++ b/games/sail/sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sync.c,v 1.14 2016/01/08 20:26:33 mestre Exp $ */
+/* $OpenBSD: sync.c,v 1.15 2016/09/11 14:21:18 tb Exp $ */
/* $NetBSD: sync.c,v 1.9 1998/08/30 09:19:40 veego Exp $ */
/*
@@ -39,6 +39,7 @@
#include <signal.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#include "extern.h"
diff --git a/games/snake/snake.c b/games/snake/snake.c
index 42a739c158e..780c5816fff 100644
--- a/games/snake/snake.c
+++ b/games/snake/snake.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snake.c,v 1.27 2016/03/16 15:00:35 mestre Exp $ */
+/* $OpenBSD: snake.c,v 1.28 2016/09/11 14:21:18 tb Exp $ */
/* $NetBSD: snake.c,v 1.8 1995/04/29 00:06:41 mycroft Exp $ */
/*
@@ -51,6 +51,7 @@
#include <stdlib.h>
#include <string.h>
#include <termios.h>
+#include <time.h>
#include <unistd.h>
#ifdef DEBUG