From nobody Wed Jun 28 22:38:52 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QrxMJ5Dbcz4kmSL; Wed, 28 Jun 2023 22:38:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QrxMJ2FlMz4Mvn; Wed, 28 Jun 2023 22:38:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687991932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9yjBibzQmjVNWhcGsZBK3eYS9+TJagKhTULXkxJS9A0=; b=Mmv3N5dFqIaYteb7Zk2g1tpEauXi3kqHMqZ2mK93eeL1hjIcrEOJ0dmOaDDlJBogJS/Wvp NmBwG2q/5uDE0fGfemahTLrDYQxxPMWt2JOqFvWBFuSQrLCAlXI6yy/fw8qbAA3i0Rpc8Z AYui7E+GryS192iTmDGMK12NlfP0jNkGnyMf/JRp7EyCMjbykKtHyAyMyG76dBfS2tBeRH 8yyaGT0eziCMOzvyikucKNXre+IsZUfg4rOJ5t/V66posyEwkDXk23kjdxlJLLfinkGmRK SB0D1OuRyyA3AQO7uUJXvMabxAXP2s9+J6d3z5djf7IOWpAukHXeDov8LHO3qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687991932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9yjBibzQmjVNWhcGsZBK3eYS9+TJagKhTULXkxJS9A0=; b=gccAfFwOV6j5uxVlZeil0XKhnD1zEs455R0+BmTkzLstE/8W9TMnzMFjyoadqiWE/AZvgN rkd8vY8qRcTGGix1MQlBwkyLhgps4Fb6+g+sGWJCzublTuOQ16lQ9muL1gfXhVM4ByfVVb 7ajLk0qOseQlnvd7Y+3Xx+SR0z3djvbNxcr2mgEX5YFATnVs7ZJzhoc0z6afaMnN/oC3g6 c5VcGDLltDclBzeM3c0lP73OYqx8VDu2YgoO36NhfrHdv+t0BVHRXs4/t7aVQcQIRb/3D5 GTlZ3MN9oPHohBA9zrK5ocxyuYdQU7SatdoMie3NOPdkKw5B5uWU7pSHHJAW/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687991932; a=rsa-sha256; cv=none; b=vtRoxt7wv2RW8cg9anGyC9k2uO4zmVLilCCgb/vcJDUwpnx96+zpzaKk0d2zW6mgxxv+GW bWbX3GB6/9WFxN6s/0wkazk1LcnZBc98gxB4u+NMZlY3WsXXkq+e0ybsNqFTMHnYZTD22X pMQGDH+kgNWzeLSsUbsBG0F3zOtvaugYfZh2oUqskaGRANwZRJ10NXi8ORHREYvmQy2a81 YAHf1HI4+z5UjbOQs/S8nfmwIrSZG2MJN0NzioQnzOpRDx1NLJc3c9z2mvOdPSvOUpwKVT czwArsno74aDNd37MsC5Ae7+nFp2uJvMkGpWPBEGtUjMMktNXi4Tc9aERR6uBw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QrxMJ1L4Qzrnh; Wed, 28 Jun 2023 22:38:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 35SMcqW6015553; Wed, 28 Jun 2023 22:38:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 35SMcqq1015552; Wed, 28 Jun 2023 22:38:52 GMT (envelope-from git) Date: Wed, 28 Jun 2023 22:38:52 GMT Message-Id: <202306282238.35SMcqq1015552@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 27cebb4eac3d - main - newfs: nextnum should be a u_int32_t, not an int List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 27cebb4eac3d03b81defa2785eae350f6caca2c7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=27cebb4eac3d03b81defa2785eae350f6caca2c7 commit 27cebb4eac3d03b81defa2785eae350f6caca2c7 Author: Alfonso Gregory AuthorDate: 2023-06-28 22:20:33 +0000 Commit: Warner Losh CommitDate: 2023-06-28 22:26:06 +0000 newfs: nextnum should be a u_int32_t, not an int The function that uses nextnum expects to return a u_int32_t, not a mere int, so let's make nextnum a u_int32_t instead. Note: retained current u_int32_t style, since the rest of the file uses it. Reviewed by: imp, mckusick Pull Request: https://github.com/freebsd/freebsd-src/pull/734 --- sbin/newfs/mkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 28b02d250e17..85137c7881f9 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -1230,7 +1230,7 @@ ilog2(int val) static u_int32_t newfs_random(void) { - static int nextnum = 1; + static u_int32_t nextnum = 1; if (Rflag) return (nextnum++);