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.
This commit is contained in:
Jeff Johnston
2005-02-25 22:31:21 +00:00
parent 6d11044c63
commit 1139537a25
7 changed files with 42 additions and 22 deletions

View File

@ -92,7 +92,7 @@ typedef struct __tzrule_struct
int d;
int s;
time_t change;
int offset;
long offset; /* Match type of _timezone. */
} __tzrule_type;
typedef struct __tzinfo_struct