1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Don't assume that time_t is long. Don't assume that time_t's can be

represented by ints.  Keep assuming that time_t's can be represented
by longs.
This commit is contained in:
Bruce Evans 1998-06-29 16:30:43 +00:00
parent 39470616b1
commit 82890f2bb9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37260

View File

@ -248,7 +248,12 @@ os_time (p, t)
host_callback *p;
long *t;
{
return wrap (p, time (t));
time_t now;
wrap (p, (int) time (&now));
if (t != NULL)
*t = (long) now;
return (long) now;
}