From f488fa58728d1ddbf5fc8856affc19046b6846a4 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Fri, 28 Jan 2000 17:28:02 +0000 Subject: [PATCH] time(3) returns a time_t and not a long. --- benchmarks/bytebench/files/patch-af | 11 +++++++++++ benchmarks/unixbench/files/patch-af | 11 +++++++++++ cad/magic/files/patch-ad | 11 +++++++++++ cad/sis/files/patch-ac | 11 +++++++++++ cad/sis/files/patch-ad | 11 +++++++++++ cad/sis/files/patch-ae | 11 +++++++++++ cad/sis/files/patch-af | 11 +++++++++++ irc/party/files/patch-aa | 12 ++++++++++++ 8 files changed, 89 insertions(+) create mode 100644 benchmarks/bytebench/files/patch-af create mode 100644 benchmarks/unixbench/files/patch-af create mode 100644 cad/magic/files/patch-ad create mode 100644 cad/sis/files/patch-ac create mode 100644 cad/sis/files/patch-ad create mode 100644 cad/sis/files/patch-ae create mode 100644 cad/sis/files/patch-af create mode 100644 irc/party/files/patch-aa diff --git a/benchmarks/bytebench/files/patch-af b/benchmarks/bytebench/files/patch-af new file mode 100644 index 000000000000..bf25a7610d17 --- /dev/null +++ b/benchmarks/bytebench/files/patch-af @@ -0,0 +1,11 @@ +--- src/dhry_1.c.orig Thu Jan 27 21:23:37 2000 ++++ src/dhry_1.c Thu Jan 27 21:24:08 2000 +@@ -78,7 +78,7 @@ + /* Measurements should last at least about 2 seconds */ + #endif + #ifdef TIME +-extern long time(); ++extern time_t time(); + /* see library function "time" */ + #define Too_Small_Time 2 + /* Measurements should last at least 2 seconds */ diff --git a/benchmarks/unixbench/files/patch-af b/benchmarks/unixbench/files/patch-af new file mode 100644 index 000000000000..bf25a7610d17 --- /dev/null +++ b/benchmarks/unixbench/files/patch-af @@ -0,0 +1,11 @@ +--- src/dhry_1.c.orig Thu Jan 27 21:23:37 2000 ++++ src/dhry_1.c Thu Jan 27 21:24:08 2000 +@@ -78,7 +78,7 @@ + /* Measurements should last at least about 2 seconds */ + #endif + #ifdef TIME +-extern long time(); ++extern time_t time(); + /* see library function "time" */ + #define Too_Small_Time 2 + /* Measurements should last at least 2 seconds */ diff --git a/cad/magic/files/patch-ad b/cad/magic/files/patch-ad new file mode 100644 index 000000000000..03a6d82e6e68 --- /dev/null +++ b/cad/magic/files/patch-ad @@ -0,0 +1,11 @@ +--- misc/niceabort.c.orig Thu Jan 27 21:59:20 2000 ++++ misc/niceabort.c Thu Jan 27 21:59:33 2000 +@@ -52,7 +52,7 @@ + bool AbortFatal = FALSE; + + /* For lint */ +-long time(); ++time_t time(); + char *ctime(); + + void diff --git a/cad/sis/files/patch-ac b/cad/sis/files/patch-ac new file mode 100644 index 000000000000..7ec522a6e0ac --- /dev/null +++ b/cad/sis/files/patch-ac @@ -0,0 +1,11 @@ +--- jedi/random.c.orig Thu Jan 27 22:04:58 2000 ++++ jedi/random.c Thu Jan 27 22:12:50 2000 +@@ -29,7 +29,7 @@ + { + int i, j; + int random_code; +- long time(); ++ time_t time(); + + /* + * generate random seed diff --git a/cad/sis/files/patch-ad b/cad/sis/files/patch-ad new file mode 100644 index 000000000000..21f1489fb1d2 --- /dev/null +++ b/cad/sis/files/patch-ad @@ -0,0 +1,11 @@ +--- nova/anneal_code.c.orig Fri Apr 22 21:02:21 1994 ++++ nova/anneal_code.c Thu Jan 27 22:17:11 2000 +@@ -195,7 +195,7 @@ + * Assign nodes initial encodings prior to annealing + */ + +- long time(); ++ time_t time(); + int i,new_code,increment,range,seed,trandom(); + + /* seed = (int) time(0); */ diff --git a/cad/sis/files/patch-ae b/cad/sis/files/patch-ae new file mode 100644 index 000000000000..7db5ecd8e9d8 --- /dev/null +++ b/cad/sis/files/patch-ae @@ -0,0 +1,11 @@ +--- nova/ihybrid_code.c.orig Thu Jan 27 22:21:28 2000 ++++ nova/ihybrid_code.c Thu Jan 27 22:21:37 2000 +@@ -932,7 +932,7 @@ + + { + +- long time(); ++ time_t time(); + int code_bits,i,new_code,increment,range,seed,trandom(); + + if (VERBOSE) printf("\nI generated a random code\n"); diff --git a/cad/sis/files/patch-af b/cad/sis/files/patch-af new file mode 100644 index 000000000000..05d9ee300ad5 --- /dev/null +++ b/cad/sis/files/patch-af @@ -0,0 +1,11 @@ +--- nova/log_output.c.orig Thu Jan 27 22:23:24 2000 ++++ nova/log_output.c Thu Jan 27 22:23:38 2000 +@@ -157,7 +157,7 @@ + + { + +- long time(); ++ time_t time(); + int i,new_code,increment,range,current_size,seed,trandom(); + + seed = (int) time(0); diff --git a/irc/party/files/patch-aa b/irc/party/files/patch-aa new file mode 100644 index 000000000000..59702be3f837 --- /dev/null +++ b/irc/party/files/patch-aa @@ -0,0 +1,12 @@ +--- party.h.orig Thu Jan 27 21:04:32 2000 ++++ party.h Thu Jan 27 21:05:01 2000 +@@ -470,7 +470,8 @@ + struct passwd *getpwnam(), *getpwuid(); + struct chnname *who_clist(), *addchn(); + char *leafname(); +-long time(), backup(); ++long backup(); ++time_t time(); + vint (*oldsigpipe)(); + vint (*(signal()))(); + FILE *upopen();