* lib/mktime.c (__mktime_internal): Use bool for a boolean local. --- ChangeLog | 5 +++++ lib/mktime.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 06819500ab..335a97d8cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-01-04 Paul Eggert <egg...@cs.ucla.edu> + + mktime: prefer bool to int + * lib/mktime.c (__mktime_internal): Use bool for a boolean local. + 2025-01-04 Bruno Haible <br...@clisp.org> mbs_endswith: Fix abort in the case of incomplete characters. diff --git a/lib/mktime.c b/lib/mktime.c index 74403e4530..75b5ef7eec 100644 --- a/lib/mktime.c +++ b/lib/mktime.c @@ -353,8 +353,8 @@ __mktime_internal (struct tm *tp, bool local, mktime_offset_t *offset) /* Ignore any tm_isdst request for timegm. */ int isdst = local ? tp->tm_isdst : 0; - /* 1 if the previous probe was DST. */ - int dst2 = 0; + /* True if the previous probe was DST. */ + bool dst2 = false; /* Ensure that mon is in range, and set year accordingly. */ int mon_remainder = mon % 12; -- 2.45.2