Convert an instance of "struct timezone tz" use I missed yesterday.

This commit is contained in:
Poul-Henning Kamp 2003-02-04 07:44:04 +00:00
parent 29afd89d38
commit 93d6c559eb

View File

@ -1498,6 +1498,7 @@ int osf1_gettimeofday(td, uap)
{
int error;
struct timeval atv;
struct timezone tz;
struct osf1_timeval otv;
error = 0;
@ -1510,8 +1511,11 @@ int osf1_gettimeofday(td, uap)
sizeof (otv))))
return (error);
}
if (uap->tzp)
if (uap->tzp) {
tz.tz_minuteswest = tz_minuteswest;
tz.tz_dsttime = tz_dsttime;
error = copyout((caddr_t)&tz, (caddr_t)uap->tzp, sizeof (tz));
}
return (error);
}