The one and only argument to gmtime(3) is a time_t*. This fixes the build
problems on the Alpha.
This commit is contained in:
parent
bfadcefe24
commit
6aac6c7a81
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=26059
2 changed files with 22 additions and 0 deletions
11
comms/plp/files/patch-af
Normal file
11
comms/plp/files/patch-af
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- rfsv/rfsv16.cc.orig Sat Feb 19 21:10:24 2000
|
||||
+++ rfsv/rfsv16.cc Sat Feb 19 21:11:09 2000
|
||||
@@ -134,7 +134,7 @@
|
||||
{
|
||||
char dateBuff[100];
|
||||
struct tm *t;
|
||||
- t = gmtime(&date);
|
||||
+ t = gmtime((time_t *)&date);
|
||||
strftime(dateBuff, 100, "%d/%m/%y %H:%M:%S", t);
|
||||
cout << " " << dateBuff;
|
||||
}
|
11
comms/plp/files/patch-ag
Normal file
11
comms/plp/files/patch-ag
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- rfsv/rfsv32.cc.orig Sat Feb 19 21:12:22 2000
|
||||
+++ rfsv/rfsv32.cc Sat Feb 19 21:12:35 2000
|
||||
@@ -186,7 +186,7 @@
|
||||
long date = us;
|
||||
char dateBuff[100];
|
||||
struct tm *t;
|
||||
- t = gmtime(&date);
|
||||
+ t = gmtime((time_t *)&date);
|
||||
strftime(dateBuff, 100, "%d/%m/%y %H:%M:%S", t);
|
||||
cout << " " << dateBuff;
|
||||
}
|
Loading…
Reference in a new issue