]> sourceware.org Git - newlib-cygwin.git/commitdiff
* times.cc (gettimeofday): Fix typo in previous patch.
authorChristopher Faylor <me@cgf.cx>
Thu, 28 Mar 2002 05:20:53 +0000 (05:20 +0000)
committerChristopher Faylor <me@cgf.cx>
Thu, 28 Mar 2002 05:20:53 +0000 (05:20 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/times.cc

index 9d5bc78414111ade9662b202435dd94a7e839a07..4d3a0b8671ed8a4dda4c393b7f9cb51f6b9d1b11 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 1ad6764536040e727a4f6bfca532fd85919eb17b..03cb09d0c4fe58678242290e4ad3361b79e1af6b 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;
This page took 0.037308 seconds and 5 git commands to generate.