Message ID | 20250105055750.1668721-52-eggert@cs.ucla.edu (mailing list archive) |
---|---|
State | New |
Headers |
Return-Path: <libc-alpha-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 94ABA3858C5F for <patchwork@sourceware.org>; Sun, 5 Jan 2025 06:41:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94ABA3858C5F Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=cs.ucla.edu header.i=@cs.ucla.edu header.a=rsa-sha256 header.s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C header.b=FQulxx1R X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail.cs.ucla.edu (mail.cs.ucla.edu [131.179.128.66]) by sourceware.org (Postfix) with ESMTPS id CF62B3858432 for <libc-alpha@sourceware.org>; Sun, 5 Jan 2025 06:00:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF62B3858432 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=cs.ucla.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.ucla.edu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CF62B3858432 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=131.179.128.66 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736056827; cv=none; b=SdV63nPN4TmxFHFAZawDdN5mWujQXbifAQAKEVLWU/neSe6eznLFd8Yzq4Au3igmEGS6NCmBJysv/EQH+k6c53AKoflp5PGl1Jto+1B0bGbEp7K5kWkFUSBWTXP6tskzaheQf4EyUVKmf134kkGj+BKdpPyx5BiBN8ZqA7qSuc8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736056827; c=relaxed/simple; bh=C2jM4EeZIEXpOdOl/z5RpYKxrs961EW4t54MBN6iUJQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=O8JnfeDqrFj3rsUhqR9j2qskb8tzvrZxmIo57OlA0A2WtKbsB4C2zuBY6eiMG9IFpXTVaWeUVuado6wLurI0aqBMvoejsX4qxfkx6er7UaKbaXow4Gg+6AGgVGWgZ7AUjRCTwvH8lwLNaGl/gdDhNoo2FOKO060uG7YkzGWxYkg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF62B3858432 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 553DB3C123843 for <libc-alpha@sourceware.org>; Sat, 4 Jan 2025 22:00:27 -0800 (PST) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id 4qydKndzJI5z; Sat, 4 Jan 2025 22:00:27 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 15E543C082EB9; Sat, 4 Jan 2025 22:00:27 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 15E543C082EB9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1736056827; bh=1Vaw2LNaBwm8+wVtfmZhY/KaRIFFXzm8MEtXPoQh+aw=; h=From:To:Date:Message-ID:MIME-Version; b=FQulxx1RUWq4zmvBN6cjSjMkPam0bDZm9w3qFk0i+QJKMAGmNzg4adzJxG/V5/N+Z EJQnBDscf9oxjEYkayWAcMzsb58ecHnxkiL9pncp3q4ZE9p4spMPECmLbUHm3QTocX NLn5PmiWQZ1A62Tpvna7DOikyqaRDxkQJd+avBi8UzteYebJ9Tly/zAc1bp21QpF2y JSUNrebr8Dhrm0Wri9E0IaP18ebt80H1jCdTEU/OwettbLWRnJYSp/Y4DdZgreutn7 hbD+FAu7ACOkl0KppBwx82jeM9hY1iTt/xzvA0fijhc54WpVfpYh+b+9Fz3VMir29t 4l5iqcsfYK3bA== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id zsnRPju-v4Hj; Sat, 4 Jan 2025 22:00:27 -0800 (PST) Received: from wing.home (unknown [47.154.28.214]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id EED8D3C082EB5; Sat, 4 Jan 2025 22:00:26 -0800 (PST) From: Paul Eggert <eggert@cs.ucla.edu> To: libc-alpha@sourceware.org Cc: Paul Eggert <eggert@cs.ucla.edu> Subject: [PATCH 51/59] =?utf-8?b?UmVmYWN0b3Ig4oCYaWbigJkgaW4gX190emZpbGVf?= =?utf-8?b?Y29tcHV0ZQ==?= Date: Sat, 4 Jan 2025 21:57:26 -0800 Message-ID: <20250105055750.1668721-52-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.45.2 In-Reply-To: <01207110-bd60-46ae-9c08-fb39c2011067@cs.ucla.edu> References: <01207110-bd60-46ae-9c08-fb39c2011067@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org |
Series |
time: sync mktime from Gnulib
|
|
Checks
Context | Check | Description |
---|---|---|
redhat-pt-bot/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
Commit Message
Paul Eggert
Jan. 5, 2025, 5:57 a.m. UTC
* time/tzfile.c (__tzfile_compute): Negate the sense of an ‘if’ to simplify future changes. --- time/tzfile.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/time/tzfile.c b/time/tzfile.c index 8b5faad424..37b194df16 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -614,20 +614,18 @@ __tzfile_compute (__time64_t timer, int use_localtime, } else if (timecnt == 0 || timer >= transitions[timecnt - 1]) { - /* TIMER is after the last transition. Do not use the TZ - string if it is absent or if we cannot convert to the - broken down structure. */ - if (__glibc_unlikely (tzspec == NULL) - || __glibc_unlikely (__offtime (timer, 0, 0, tp) == NULL)) + /* TIMER is after the last transition. Use the TZ string if + it is present and we can convert to the broken down structure. */ + if (__glibc_likely (tzspec != NULL) + && __glibc_likely (__offtime (timer, 0, 0, tp) != NULL)) { - i = timecnt; - goto found; + /* Use the rules from the TZ string to compute the change. */ + __tz_compute (timer, tp); + return; } - /* Use the rules from the TZ string to compute the change. */ - __tz_compute (timer, tp); - - return; + i = timecnt; + goto found; } else {