* times.cc (gettimeofday): Fix typo in previous patch.
This commit is contained in:
parent
7d7524e57d
commit
8996623b78
@ -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 !=
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user