From 77c7d55ece0caaa39652e05158e18d8a9b4f6fbe Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sun, 3 Feb 2019 09:55:41 +0100 Subject: 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. --- ChangeLog | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 8f311cc071..628aaef05f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2019-02-03 Florian Weimer + + * 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 [BZ #24153] -- cgit v1.2.3