* times.cc (gettimeofday): Fix typo in previous patch.

This commit is contained in:
Christopher Faylor 2002-03-28 05:20:53 +00:00
parent 7d7524e57d
commit 8996623b78
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-03-28 Christopher Faylor <cgf@redhat.com>
* times.cc (gettimeofday): Fix typo in previous patch.
2002-03-27 Wu Yongwei <adah@netstd.com>
* times.cc (gettimeofday): Revert to setting timezone info if tz !=

View File

@ -155,7 +155,7 @@ extern "C" int
gettimeofday(struct timeval *tv, struct timezone *tz)
{
static hires gtod;
static tzflag;
static bool tzflag;
LONGLONG now = gtod.usecs (false);
if (now == (LONGLONG) -1)
return -1;
@ -167,7 +167,7 @@ gettimeofday(struct timeval *tv, struct timezone *tz)
{
if (!tzflag) {
tzset();
tzflag = 1;
tzflag = true;
}
tz->tz_minuteswest = _timezone / 60;
tz->tz_dsttime = _daylight;