]> git.ipfire.org Git - thirdparty/glibc.git/commit - time/tzset.c
time: Use int, not long int, for internal GMT offsets
authorFlorian Weimer <fweimer@redhat.com>
Sun, 3 Feb 2019 08:55:41 +0000 (09:55 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Sun, 3 Feb 2019 08:55:41 +0000 (09:55 +0100)
commit77c7d55ece0caaa39652e05158e18d8a9b4f6fbe
treec0ece835c04118e8af375a7eb875fdafeac21586
parentee9941f94ea838774c34f60b3397fba07a803d92
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
include/time.h
time/tzfile.c
time/tzset.c