From nobody Wed Oct 23 07:24:33 2024 X-Original-To: dev-commits-src-branches@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 4XYLCP3HH7z5Zwrk; Wed, 23 Oct 2024 07:24:33 +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 4XYLCP1S3tz47Cw; Wed, 23 Oct 2024 07:24:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729668273; 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=kMVJHk4UdeyiiBm5CUIHtjWo8ovD1344KWKgE1+okJY=; b=fNKyukk/jMKrHopHjpu5maFWWbW8gR7XNPxBZVs8ytUL3x1c5WsFAkTDE4xmqsBfH+iRf+ W1nFo0M2h8jvO+2n0iSLb1zdqiVMHlllUUM+ZrcCQt5YZqNQ1vOlwuxei8DZkPvcl5C3PO E5lGioGhqNuQ6sV0Un5NuyCHLieMLss5Hzm+gjYSVycL6ZUQ1QtRT6A8geKPIBlxqg1jbT fZONMg08UdEjD+icTSZd3FbLfAk/pXR1ToSNXeb9F0j/Y2z2M+5znvwh5gi9zLno74/Rg4 KK6I9oOkl3j213NkQW6KzJh70bjKagQEFJsXJK9PKWE7/cxM7ZDtHpiAPfFokQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729668273; 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=kMVJHk4UdeyiiBm5CUIHtjWo8ovD1344KWKgE1+okJY=; b=iyEhrrPdKZLyBvdKFrXmJuq8Q5/+36Bf5c6tl16x3OAzKp00GONonH5h4xgg9FlRz0B+zs xrnWWG3NMToKAxhQKulxbtaqgsDbe1qtzvxb99p0gms7hDqB83lnfBdd9qae3Bpb7Na+pD 6ZWZt6AIzDOyTGFOjjdVh0nqepWPVXyqoCTcv92dIRYooH7yKNADQumXfihyg9CuSwmg/9 As6ODEa2IysOvA6Zyn+KTcVqAQiRe3/q4YMuz3wiD6Tc2PRewy7IY4OJNsRIMiAiXUidYw k5ipTwXyjAYeUmPezqx/XfSHefOdwswvhUJsxASBQlttkpMw4JQ3hwQsQ6h2Ig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729668273; a=rsa-sha256; cv=none; b=gHiP51EMdbpe0LDMqPhG5eOIJXCzMuhzi1iuYjQkYfGcqs3mPnpGf/bFxkU77CsDaKp5/N KCmLk+/DaVBtvW0M8gOJ/v+HVO85Uc11rZhr6pj/xufhV6Qa7RZCTkByX3rAjpe/gGhmjt 7GF+/+CFMgfHpYZrilSDv1LnJUusEmSuc8eLTW39b8A3hm8f0obR6ZgVGnhaoiOYg3dbRi hbe61ZPelMJ07Jsu5aRDuaM8fFV7ucnSKlEmgZpUkayLVQyrjpHz1QNcBkvOoG3DwIY3zt awy8iMFrKG8vylgOBKhXY5KYA4hQK/JjIip9eYibx04mcmka0VCBbS2c14Yudg== 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 4XYLCP0bGfzpkv; Wed, 23 Oct 2024 07:24:33 +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 49N7OXXP036486; Wed, 23 Oct 2024 07:24:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49N7OXBH036483; Wed, 23 Oct 2024 07:24:33 GMT (envelope-from git) Date: Wed, 23 Oct 2024 07:24:33 GMT Message-Id: <202410230724.49N7OXBH036483@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Baptiste Daroussin Subject: git: 8610fcedb98b - stable/14 - genl: small cleanup List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 8610fcedb98bf6960c1bfd80084125016e1f8709 Auto-Submitted: auto-generated The branch stable/14 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=8610fcedb98bf6960c1bfd80084125016e1f8709 commit 8610fcedb98bf6960c1bfd80084125016e1f8709 Author: Baptiste Daroussin AuthorDate: 2024-10-07 13:28:54 +0000 Commit: Baptiste Daroussin CommitDate: 2024-10-23 07:24:09 +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 (cherry picked from commit 782766a32d963587a6aac8521aedd132b68a9dab) --- 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 "