From 13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 26 Mar 2026 12:53:53 +0100 Subject: Update/gnulib 2026 03 (#2247) * Sync with the 202601-stable Gnulib code (4a3650d887) * Ignore more deps stuff in gnulib * Remove autogenerated gnulib files * Ignore more gnulib generated headers --- gl/mktime.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gl/mktime.c') diff --git a/gl/mktime.c b/gl/mktime.c index 4218fca6..c56c6f9a 100644 --- a/gl/mktime.c +++ b/gl/mktime.c @@ -1,5 +1,5 @@ /* Convert a 'struct tm' to a time_t value. - Copyright (C) 1993-2025 Free Software Foundation, Inc. + Copyright (C) 1993-2026 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Paul Eggert . @@ -468,11 +468,9 @@ __mktime_internal (struct tm *tp, bool local, mktime_offset_t *offset) int year_seconds_bound = 366 * 24 * 60 * 60 + 1; int delta_bound = year_seconds_bound + stride; - int delta, direction; - /* Search in both directions, closest first. */ - for (delta = stride; delta < delta_bound; delta += stride) - for (direction = -1; direction <= 1; direction += 2) + for (int delta = stride; delta < delta_bound; delta += stride) + for (int direction = -1; direction <= 1; direction += 2) { long_int ot; if (! ckd_add (&ot, t, delta * direction)) -- cgit v1.2.3-74-g34f1