summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-02-03 09:55:41 +0100
committerFlorian Weimer <fweimer@redhat.com>2019-02-03 09:55:41 +0100
commit77c7d55ece0caaa39652e05158e18d8a9b4f6fbe (patch)
treec0ece835c04118e8af375a7eb875fdafeac21586 /include
parentee9941f94ea838774c34f60b3397fba07a803d92 (diff)
downloadglibc-77c7d55ece0caaa39652e05158e18d8a9b4f6fbe.tar.gz
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 'include')
-rw-r--r--include/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/time.h b/include/time.h
index f935e9dd3e..61dd9e180b 100644
--- a/include/time.h
+++ b/include/time.h
@@ -43,7 +43,7 @@ extern void __tzfile_compute (__time64_t timer, int use_localtime,
long int *leap_correct, int *leap_hit,
struct tm *tp) attribute_hidden;
extern void __tzfile_default (const char *std, const char *dst,
- long int stdoff, long int dstoff)
+ int stdoff, int dstoff)
attribute_hidden;
extern void __tzset_parse_tz (const char *tz) attribute_hidden;
extern void __tz_compute (__time64_t timer, struct tm *tm, int use_localtime)