bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/4] mktime: improve comment wording


From: Paul Eggert
Subject: [PATCH 1/4] mktime: improve comment wording
Date: Thu, 3 Oct 2024 22:12:18 -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 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/mktime.c b/lib/mktime.c
index c704f41574..744a7277bb 100644
--- a/lib/mktime.c
+++ b/lib/mktime.c
@@ -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
-- 
2.43.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]