From nobody Mon Oct 07 13:33:29 2024 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 4XMg8T4fMqz5Y8W0; Mon, 07 Oct 2024 13:33:29 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XMg8T3DkTz4X5b; Mon, 7 Oct 2024 13:33:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728308009; 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=9oPxPwTxUIOWPJ5mLf79VOthx9fSCjiqAxUC2Zh6bwk=; b=Wj7T2c6mwU3sL4bGsmq5wx1+YGYKoFWjd76deIYP6JeOkKoy7AqRrjJ+8cPmnnk92dUyOG D+xrlSyzssrgPGWClBw/O194AF8bqU/gtCeMCb2mnE/RJyzYj0EJA7HaJjA1N+13qPHJLF NQFiBtSQXwDiSFN/gJqgLH+3YfwuS3RxTmok/uQ10kExpnlfRcMfaOEVyqKgiIY5SLt65S D46jZVWFEV45m1DO3f6hKBFIgCPqxbTDFTvRSZ8sIc63nn9crdjz2Zw8jYnsXWznvxSejB DA7iEkwzGKdOhRl6q+64ycCRA64R67kEByljDV2doRdSHa16Kj76iuOU6tYyHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728308009; 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=9oPxPwTxUIOWPJ5mLf79VOthx9fSCjiqAxUC2Zh6bwk=; b=rpiJTUV2wugBVaVq3yJcSxPpKAHGURZAQ4Ygah6mA2SJzYrYfaZ5E5777tEZkxyOi4Jbv+ 4znyOcZ5449Pg42r38NlOXOc53fb1Cpib4lVXLEleRnu/QuujIzfF+blhmgQbzM6ttcy2I CYAFyTsygRAgkzUHCI0YiZVMLc9dtFrlZB31P5Amq6yUDDzww5FH1D/HUNsAaYUxnrno36 LDE7GatuXxNNhUTKZMTO2AuPGDhucF+grAVmApKugX6ndCpxt5IJtlTv+aRFMGZW0FvhqB O8mBQZyRbTDDn+uSQecmwSW2NzszcTC9UXutdMu9R5ezNNrVEcpLSeQpJV32Kg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728308009; a=rsa-sha256; cv=none; b=rY2M2MLwP/JStgXJZrzrOyO1eOC7MMODY5JvecPL4D1YdYK6QEjvE6amCQYOR+5o106VTz MlTb/2W/LGZO5K/EblksXma3pup6R840OJZqaN+A9uiVJV6j1x/OZj8DaU29xqWo8OlHEt hABarVexpJeMl6aEyPFaODrDL+zPB12Rum5fSdwlf1IyRzvoxLhjLg3iXWa44kE25tpPz3 3aSqtkGE0Lr85GoROvBFGGz/eRhh42gdJ0lfs1+O3+40pFBcaAmtFz0AG1AfdU1eSj1mGK YAVTXw0rg0pCaqSwPgB25X+LxhU4PV5MFz7fFBdoOkGwGmfTKzuBcH8Q4VoKNA== 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 4XMg8T2qyYzp25; Mon, 7 Oct 2024 13:33:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 497DXTDU040328; Mon, 7 Oct 2024 13:33:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 497DXTij040325; Mon, 7 Oct 2024 13:33:29 GMT (envelope-from git) Date: Mon, 7 Oct 2024 13:33:29 GMT Message-Id: <202410071333.497DXTij040325@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 782766a32d96 - main - genl: small cleanup 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 782766a32d963587a6aac8521aedd132b68a9dab Auto-Submitted: auto-generated The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=782766a32d963587a6aac8521aedd132b68a9dab commit 782766a32d963587a6aac8521aedd132b68a9dab Author: Baptiste Daroussin AuthorDate: 2024-10-07 13:28:54 +0000 Commit: Baptiste Daroussin CommitDate: 2024-10-07 13:28:54 +0000 genl: small cleanup Following up from another review using basically the same code: remove useless cast replace uint32_t with unsigned int. No functional changes expected --- usr.bin/genl/genl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/genl/genl.c b/usr.bin/genl/genl.c index 48c74fa20c81..df2758c273f3 100644 --- a/usr.bin/genl/genl.c +++ b/usr.bin/genl/genl.c @@ -247,13 +247,13 @@ monitor_mcast(int argc __unused, char **argv) errx(EXIT_FAILURE, "Unknown family '%s'", argv[0]); if (argc == 1) all = true; - for (uint32_t i = 0; i < attrs.mcast_groups.num_groups; i++) { + for (unsigned int i = 0; i < attrs.mcast_groups.num_groups; i++) { if (all || strcmp(attrs.mcast_groups.groups[i]->mcast_grp_name, argv[1]) == 0) { found = true; if (setsockopt(ss.fd, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, - (void *)&attrs.mcast_groups.groups[i]->mcast_grp_id, + &attrs.mcast_groups.groups[i]->mcast_grp_id, sizeof(attrs.mcast_groups.groups[i]->mcast_grp_id)) == -1) err(EXIT_FAILURE, "Cannot subscribe to command "