Authentication-Results: name.execsw.org; dkim=pass (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=LGrum+un; dkim=fail reason="signature verification failed" (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=XTeGHAtO Received: by mail.netbsd.org (Postfix, from userid 605) id 2BE5084E81; Tue, 16 Apr 2024 18:33:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713292429; bh=QOF1YvsQkeKrokq6Igzygoe9PG4zjO/bZS0Apqb2DS0=; h=Date:From:Subject:To:List-Id:Reply-To:List-Unsubscribe; b=LGrum+un03J0bEzsJTEd4udWUONM18elPcje5bUtUe19vlDfz0Rmgs32OAuShWG9P yBfmKa6SS2DEXNxiFSI8b6iF2D09tR12lv1hl5H9qfI3cPrXM15dLWjT1KMMyJWPEz xWTBBDRbwZ4F/G0kddHjhO9++oPW2oBMFP72KXaU= Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 1124F84EC2 for ; Tue, 16 Apr 2024 18:33:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id d_5XmTy3YQ-r for ; Tue, 16 Apr 2024 18:33:47 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 95C3484CC8 for ; Tue, 16 Apr 2024 18:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713292427; bh=QOF1YvsQkeKrokq6Igzygoe9PG4zjO/bZS0Apqb2DS0=; h=Date:From:Subject:To:Reply-To; b=XTeGHAtO2s0EIua/l3IL9riXJnyJ70ydGG5+9nhgi1IXhHQrE9MWU8/MJIjjVnLGq rq/d2zVjBQiImbdgAHBKAYlTI4QGDrWh+j0BENjmzAImR+o0huCN4ciO4zTxckeffn Ks6GpEqr9IjOhAn+dpg/tGRu6B6QR8ys4B5QBd4c= Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8D218FA2C; Tue, 16 Apr 2024 18:33:47 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 16 Apr 2024 18:33:47 +0000 From: "Martin Husemann" Subject: CVS commit: [netbsd-10] src/lib/libc/time To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20240416183347.8D218FA2C@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Martin Husemann" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: martin Date: Tue Apr 16 18:33:47 UTC 2024 Modified Files: src/lib/libc/time [netbsd-10]: strptime.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #648): lib/libc/time/strptime.c: revision 1.66 strptime(3): Declare digit d as time_t. This doesn't make a semantic difference -- d can only take on the ten values {0,1,2,3,4,5,6,7,8,9}, and the arithmetic with it later all comes out the same whether the type is unsigned or time_t, even if time_t were int32_t instead of int64_t. But it pacifies overzealous compilers used by downstream users of this code. And while it's silly to use a much wider type (64-bit signed) than is needed here to store a single digit, it doesn't really hurt either (32-bit unsigned is much larger than needed too). PR lib/58041 To generate a diff of this commit: cvs rdiff -u -r1.63.6.1 -r1.63.6.2 src/lib/libc/time/strptime.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.