Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-02-26 01:31:21 +0300
committerJeff Johnston <jjohnstn@redhat.com>2005-02-26 01:31:21 +0300
commit1139537a2536b2ca1632f5ab991935ba25068bcb (patch)
tree083b83bc1087094af4a566d7167ef1590d8943b9 /newlib/libc/time/gettzinfo.c
parent6d11044c633bc7aca545c5409327ef023646205b (diff)
2005-02-25 Eric Blake <ebb9@byu.net>
* libc/include/time.h (__tzrule_struct): Make offset long, since a 16-bit int overflows on a 12-hour offset. * libc/sys/linux/include/time.h: Ditto. * libc/time/mktime.c (mktime): Use new type of __tzrule.offset. * libc/time/mktm_r.c: Ditto. * libc/time/gettzinfo.c: Ditto. * libc/time/strftime.c (strftime): Fix '%x' to deal with negative years. Fix '%z' to use long, not int.
Diffstat (limited to 'newlib/libc/time/gettzinfo.c')
-rw-r--r--newlib/libc/time/gettzinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/time/gettzinfo.c b/newlib/libc/time/gettzinfo.c
index be754f31b..54c9bc2f0 100644
--- a/newlib/libc/time/gettzinfo.c
+++ b/newlib/libc/time/gettzinfo.c
@@ -3,8 +3,8 @@
/* Shared timezone information for libc/time functions. */
static __tzinfo_type tzinfo = {1, 0,
- { {'J', 0, 0, 0, 0, (time_t)0, 0 },
- {'J', 0, 0, 0, 0, (time_t)0, 0 }
+ { {'J', 0, 0, 0, 0, (time_t)0, 0L },
+ {'J', 0, 0, 0, 0, (time_t)0, 0L }
}
};