aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/times.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-03-28 05:20:53 +0000
committerChristopher Faylor <me@cgf.cx>2002-03-28 05:20:53 +0000
commit8996623b78278764e9825933199ac10164a06681 (patch)
treec7dea964bad5de191d2d8b0c522e2f567108a9c5 /winsup/cygwin/times.cc
parent7d7524e57db3db1010c7896a5f4a88e95c4015d3 (diff)
downloadnewlib-8996623b78278764e9825933199ac10164a06681.zip
newlib-8996623b78278764e9825933199ac10164a06681.tar.gz
newlib-8996623b78278764e9825933199ac10164a06681.tar.bz2
* times.cc (gettimeofday): Fix typo in previous patch.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r--winsup/cygwin/times.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 1ad6764..03cb09d 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;