OSDN Git Service

* times.cc (gettimeofday): Fix typo in previous patch.
authorcgf <cgf>
Thu, 28 Mar 2002 05:20:53 +0000 (05:20 +0000)
committercgf <cgf>
Thu, 28 Mar 2002 05:20:53 +0000 (05:20 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/times.cc

index 9d5bc78..4d3a0b8 100644 (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 !=
index 1ad6764..03cb09d 100644 (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;