From 8996623b78278764e9825933199ac10164a06681 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 28 Mar 2002 05:20:53 +0000 Subject: * times.cc (gettimeofday): Fix typo in previous patch. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/times.cc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'winsup') diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9d5bc7841..4d3a0b867 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2002-03-28 Christopher Faylor + + * times.cc (gettimeofday): Fix typo in previous patch. + 2002-03-27 Wu Yongwei * times.cc (gettimeofday): Revert to setting timezone info if tz != diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 1ad676453..03cb09d0c 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -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; -- cgit v1.2.3