summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-09-19 13:16:14 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-09-19 17:09:08 -0700
commite1080e7e5f3e62ef737bb3ee5babd7ad66bedfd7 (patch)
treec1dacc6faff6555f449848449b4c8d5e8d6aad10 /time
parent8e6fd2bdb21efe2cc1ae7571ff8fb2599db6a05a (diff)
downloadglibc-e1080e7e5f3e62ef737bb3ee5babd7ad66bedfd7.tar.gz
Fix mktime localtime offset confusion
[BZ #23603] * include/time.h (__mktime_internal): The localtime offset is now of type long int instead of time_t. This is the longstanding type in glibc, and it is more than enough to represent difference between localtime and gmtime even if it is 32 bits and time_t is 64. Changing it now will let us avoid an unnecessary change when time_t is widened to 64 bits on 32-bit platforms. * time/mktime-internal.h (mktime_offset_t): Now long int.
Diffstat (limited to 'time')
-rw-r--r--time/mktime-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/mktime-internal.h b/time/mktime-internal.h
index 01671285fc..6111c22880 100644
--- a/time/mktime-internal.h
+++ b/time/mktime-internal.h
@@ -1,2 +1,2 @@
/* Gnulib mktime-internal.h, tailored for glibc. */
-typedef time_t mktime_offset_t;
+typedef long int mktime_offset_t;