time(3) returns a time_t and not a long.

This commit is contained in:
Steve Price 2000-01-28 17:28:02 +00:00
parent 727779dfca
commit f488fa5872
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25174
8 changed files with 89 additions and 0 deletions

View File

@ -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 */

View File

@ -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 */

11
cad/magic/files/patch-ad Normal file
View File

@ -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

11
cad/sis/files/patch-ac Normal file
View File

@ -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

11
cad/sis/files/patch-ad Normal file
View File

@ -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); */

11
cad/sis/files/patch-ae Normal file
View File

@ -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");

11
cad/sis/files/patch-af Normal file
View File

@ -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);

12
irc/party/files/patch-aa Normal file
View File

@ -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();