diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-02-03 09:55:41 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-02-03 09:55:41 +0100 |
commit | 77c7d55ece0caaa39652e05158e18d8a9b4f6fbe (patch) | |
tree | c0ece835c04118e8af375a7eb875fdafeac21586 /ChangeLog | |
parent | ee9941f94ea838774c34f60b3397fba07a803d92 (diff) | |
download | glibc-77c7d55ece0caaa39652e05158e18d8a9b4f6fbe.zip glibc-77c7d55ece0caaa39652e05158e18d8a9b4f6fbe.tar.gz glibc-77c7d55ece0caaa39652e05158e18d8a9b4f6fbe.tar.bz2 |
time: Use int, not long int, for internal GMT offsets
The GMT offset can be outside the range of a 16-bit int type, which
is presumably the reason why long int was used in struct tm. We
cannot change struct tm, but we can change the internal type for
the offset.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,5 +1,16 @@ 2019-02-03 Florian Weimer <fweimer@redhat.com> + * include/time.h (__tzfile_default): Use int, not long int, for + the GMT offsets. + * time/tzfile.c (struct ttinfo): Change type of the offset member + to int. + (__tzfile_read): Remove useless cast. + (__tzfile_default): Adjust prototype. + * time/tzset.c (tz_rule): Change type of the offset member to int. + (parse_offset): Change the type of the sign variable to int. + +2019-02-03 Florian Weimer <fweimer@redhat.com> + [BZ #24153] * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin. * libio/getchar.c (getchar): Likewise. |