]> Savannah Git Hosting - gnulib.git/commitdiff
mktime: improve comment wording
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Oct 2024 01:14:30 +0000 (18:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Oct 2024 01:14:30 +0000 (18:14 -0700)
* src/mktime.c: Improve comment wording.  glibc has
changed the comment wording, and this improves on
the glibc changes with the result scheduled to be
copied back to glibc.

lib/mktime.c

index c704f41574003dbd80a7a6a9f39409496fb96174..744a7277bb4aef7f32e0a962cffffbd4bbf3511e 100644 (file)
@@ -536,9 +536,8 @@ __mktime_internal (struct tm *tp,
 __time64_t
 __mktime64 (struct tm *tp)
 {
-  /* POSIX.1 8.1.1 requires that whenever mktime() is called, the
-     time zone names contained in the external variable 'tzname' shall
-     be set as if the tzset() function had been called.  */
+  /* POSIX.1 requires mktime to set external variables like 'tzname'
+     as though tzset had been called.  */
   __tzset ();
 
 # if defined _LIBC || NEED_MKTIME_WORKING