Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games Include <time.h> in various places in the games where ...
details: https://anonhg.NetBSD.org/src/rev/fddc8a3bd0d1
branches: trunk
changeset: 476205:fddc8a3bd0d1
user: jsm <jsm%NetBSD.org@localhost>
date: Thu Sep 09 17:30:17 1999 +0000
description:
Include <time.h> in various places in the games where time() or time_t
are used.
diffstat:
games/backgammon/backgammon/main.c | 6 ++++--
games/boggle/boggle/extern.h | 4 +++-
games/canfield/canfield/canfield.c | 6 +++---
games/fortune/fortune/fortune.c | 5 +++--
games/fortune/strfile/strfile.c | 5 +++--
games/hangman/setup.c | 5 +++--
games/mille/save.c | 6 ++++--
games/sail/sync.c | 5 +++--
games/wump/wump.c | 5 +++--
9 files changed, 29 insertions(+), 18 deletions(-)
diffs (218 lines):
diff -r 10ad1ec55d73 -r fddc8a3bd0d1 games/backgammon/backgammon/main.c
--- a/games/backgammon/backgammon/main.c Thu Sep 09 17:27:58 1999 +0000
+++ b/games/backgammon/backgammon/main.c Thu Sep 09 17:30:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.13 1999/08/14 16:29:22 tron Exp $ */
+/* $NetBSD: main.c,v 1.14 1999/09/09 17:30:17 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,10 +43,12 @@
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.13 1999/08/14 16:29:22 tron Exp $");
+__RCSID("$NetBSD: main.c,v 1.14 1999/09/09 17:30:17 jsm Exp $");
#endif
#endif /* not lint */
+#include <time.h>
+
#include "back.h"
#include "backlocal.h"
diff -r 10ad1ec55d73 -r fddc8a3bd0d1 games/boggle/boggle/extern.h
--- a/games/boggle/boggle/extern.h Thu Sep 09 17:27:58 1999 +0000
+++ b/games/boggle/boggle/extern.h Thu Sep 09 17:30:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.5 1999/09/08 21:17:44 jsm Exp $ */
+/* $NetBSD: extern.h,v 1.6 1999/09/09 17:30:18 jsm Exp $ */
/*-
* Copyright (c) 1993
@@ -35,6 +35,8 @@
* @(#)extern.h 8.1 (Berkeley) 6/11/93
*/
+#include <time.h>
+
void addword __P((const char *));
void badword __P((void));
char *batchword __P((FILE *));
diff -r 10ad1ec55d73 -r fddc8a3bd0d1 games/canfield/canfield/canfield.c
--- a/games/canfield/canfield/canfield.c Thu Sep 09 17:27:58 1999 +0000
+++ b/games/canfield/canfield/canfield.c Thu Sep 09 17:30:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: canfield.c,v 1.13 1999/09/08 21:45:26 jsm Exp $ */
+/* $NetBSD: canfield.c,v 1.14 1999/09/09 17:30:19 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)canfield.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: canfield.c,v 1.13 1999/09/08 21:45:26 jsm Exp $");
+__RCSID("$NetBSD: canfield.c,v 1.14 1999/09/09 17:30:19 jsm Exp $");
#endif
#endif /* not lint */
@@ -67,7 +67,7 @@
#include <stdlib.h>
#include <string.h>
#include <termios.h>
-#include <termios.h>
+#include <time.h>
#include <unistd.h>
#include "pathnames.h"
diff -r 10ad1ec55d73 -r fddc8a3bd0d1 games/fortune/fortune/fortune.c
--- a/games/fortune/fortune/fortune.c Thu Sep 09 17:27:58 1999 +0000
+++ b/games/fortune/fortune/fortune.c Thu Sep 09 17:30:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fortune.c,v 1.18 1999/09/08 21:57:16 jsm Exp $ */
+/* $NetBSD: fortune.c,v 1.19 1999/09/09 17:30:19 jsm Exp $ */
/*-
* Copyright (c) 1986, 1993
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fortune.c,v 1.18 1999/09/08 21:57:16 jsm Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.19 1999/09/09 17:30:19 jsm Exp $");
#endif
#endif /* not lint */
@@ -62,6 +62,7 @@
# include <stdlib.h>
# include <string.h>
# include <err.h>
+# include <time.h>
# include "strfile.h"
# include "pathnames.h"
diff -r 10ad1ec55d73 -r fddc8a3bd0d1 games/fortune/strfile/strfile.c
--- a/games/fortune/strfile/strfile.c Thu Sep 09 17:27:58 1999 +0000
+++ b/games/fortune/strfile/strfile.c Thu Sep 09 17:30:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strfile.c,v 1.11 1999/09/08 21:57:17 jsm Exp $ */
+/* $NetBSD: strfile.c,v 1.12 1999/09/09 17:30:19 jsm Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: strfile.c,v 1.11 1999/09/08 21:57:17 jsm Exp $");
+__RCSID("$NetBSD: strfile.c,v 1.12 1999/09/09 17:30:19 jsm Exp $");
#endif
#endif /* not lint */
@@ -57,6 +57,7 @@
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
+# include <time.h>
# include <unistd.h>
# include "strfile.h"
diff -r 10ad1ec55d73 -r fddc8a3bd0d1 games/hangman/setup.c
--- a/games/hangman/setup.c Thu Sep 09 17:27:58 1999 +0000
+++ b/games/hangman/setup.c Thu Sep 09 17:30:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setup.c,v 1.6 1999/09/08 21:17:50 jsm Exp $ */
+/* $NetBSD: setup.c,v 1.7 1999/09/09 17:30:20 jsm Exp $ */
/*-
* Copyright (c) 1983, 1993
@@ -38,11 +38,12 @@
#if 0
static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: setup.c,v 1.6 1999/09/08 21:17:50 jsm Exp $");
+__RCSID("$NetBSD: setup.c,v 1.7 1999/09/09 17:30:20 jsm Exp $");
#endif
#endif /* not lint */
#include <err.h>
+#include <time.h>
#include "hangman.h"
/*
diff -r 10ad1ec55d73 -r fddc8a3bd0d1 games/mille/save.c
--- a/games/mille/save.c Thu Sep 09 17:27:58 1999 +0000
+++ b/games/mille/save.c Thu Sep 09 17:30:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: save.c,v 1.9 1999/09/08 21:57:18 jsm Exp $ */
+/* $NetBSD: save.c,v 1.10 1999/09/09 17:30:20 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,10 +38,12 @@
#if 0
static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: save.c,v 1.9 1999/09/08 21:57:18 jsm Exp $");
+__RCSID("$NetBSD: save.c,v 1.10 1999/09/09 17:30:20 jsm Exp $");
#endif
#endif /* not lint */
+#include <time.h>
+
#include "mille.h"
#ifndef unctrl
diff -r 10ad1ec55d73 -r fddc8a3bd0d1 games/sail/sync.c
--- a/games/sail/sync.c Thu Sep 09 17:27:58 1999 +0000
+++ b/games/sail/sync.c Thu Sep 09 17:30:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sync.c,v 1.12 1999/09/08 21:57:20 jsm Exp $ */
+/* $NetBSD: sync.c,v 1.13 1999/09/09 17:30:20 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: sync.c,v 1.12 1999/09/08 21:57:20 jsm Exp $");
+__RCSID("$NetBSD: sync.c,v 1.13 1999/09/09 17:30:20 jsm Exp $");
#endif
#endif /* not lint */
@@ -53,6 +53,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <time.h>
#include "extern.h"
#define BUFSIZE 4096
diff -r 10ad1ec55d73 -r fddc8a3bd0d1 games/wump/wump.c
--- a/games/wump/wump.c Thu Sep 09 17:27:58 1999 +0000
+++ b/games/wump/wump.c Thu Sep 09 17:30:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wump.c,v 1.9 1999/07/14 22:49:27 hubertf Exp $ */
+/* $NetBSD: wump.c,v 1.10 1999/09/09 17:30:20 jsm Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -47,7 +47,7 @@
#if 0
static char sccsid[] = "@(#)wump.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: wump.c,v 1.9 1999/07/14 22:49:27 hubertf Exp $");
+__RCSID("$NetBSD: wump.c,v 1.10 1999/09/09 17:30:20 jsm Exp $");
#endif
#endif /* not lint */
@@ -64,6 +64,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#include "pathnames.h"
Home |
Main Index |
Thread Index |
Old Index