From nobody Mon Jun 19 17:38:30 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 4QlH6v2J7jz4fmtV; Mon, 19 Jun 2023 17:38:31 +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 4QlH6v183xz3DhC; Mon, 19 Jun 2023 17:38:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687196311; 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=3VwSWHtAUROz+nWJiChxFZZKCYcFvRzUhxQGHLo1Zps=; b=MhjrQNSWL05KzMkPiPLlrg0TjL85zEzYMgUidCv1BvYz0o2soWJVEMBbwksCFa5YWe9lte MX5d0rkecYitPhNaeZeMzKtiG6loPA7/F8Cgqgnrgz/X9+HMg+rR8yao3FpotZ2plvYZO3 FXfP/Icn+3WC3ACdjGE++eJ+CAYiu12mu/fuvfBxwdINbIPN/J6nuzm3wscjxJvMp8OE6P HnZjrlomUS5hcQrUhzB0Fe5yi6zHjQxFlK2SIdVPQaxNwVoL379Px1mktEWPM1vM6Lx2bB Brj4gkUUuJsaK+Z8sgJWNdD40tT+7i/9IK8lPTsEqZb/i5mZtOYxbs98krSzDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687196311; 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=3VwSWHtAUROz+nWJiChxFZZKCYcFvRzUhxQGHLo1Zps=; b=yM3YmwRuzbLOlaeC8hFii5p/Wk4QOYcUu2jmMNijHHJW/OgstAoUi7/ZJnPhvriRhEessN iiFrzAVtVZaiUwEL+GjCu03BxkwHL8sQMUuDi1RUAuphwBpZM2g1M3DKrh7AavB7jgECZv fl5pACxxUtrNHiOvQqlnoO9gvxC/aTwBvjHesjC/m5FU9/U1sIM6tVCLTaqtisXxoXqsXk GchNTM3u3H4Twkj/RKackH51dyEKoH6lgkwiyEn32XCYb43ySIpuL0xcf8AV6cZDOfB7Z0 Fye0VZtlHzdbuwKI9f2GFC1+R3c3oWiIxJsa0JtsFoqzKCdU3StoILXG8oGR8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687196311; a=rsa-sha256; cv=none; b=eWAxFDf/JVvaCkCOPCfcDU0V8O5BASkn0BtKFK3J+U5hmZuI6z2em28E+xM/QhybVf253T eT2tj5leI0KVSTBogU8BvT8MG7B8qh+b/4VqL6BVpNLSmdm4BLCyD5dyRFkYr7PK08aMEr XrPVSvH85NDv7IRmlVUuLgRlhC2JczJjjXi7jxztvOIwbSPhOExyxsb+pGgC7xUrg4k549 eHQchWj+Uz9ewLSq5B/txrRvLfHDEHVSDcSn0+ZUUJV5d4L9Ez8d0JFpFFeZ3XjYsC0JsK W4MZPMYl6tIK9PrSMTqR9Yz/QqVUkia9oxnANitWQ7gMvullMnHCVm6ZxVrHRg== 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 4QlH6t6tbBzRGC; Mon, 19 Jun 2023 17:38:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35JHcUhQ081745; Mon, 19 Jun 2023 17:38:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35JHcUmv081744; Mon, 19 Jun 2023 17:38:30 GMT (envelope-from git) Date: Mon, 19 Jun 2023 17:38:30 GMT Message-Id: <202306191738.35JHcUmv081744@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: a3b1138778f3 - main - ifconfig: Consistently use uint32_t for wireless channel flags. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a3b1138778f347288f0f3f08c1e46b1ea411afdb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a3b1138778f347288f0f3f08c1e46b1ea411afdb commit a3b1138778f347288f0f3f08c1e46b1ea411afdb Author: John Baldwin AuthorDate: 2023-06-19 17:38:07 +0000 Commit: John Baldwin CommitDate: 2023-06-19 17:38:07 +0000 ifconfig: Consistently use uint32_t for wireless channel flags. Reported by: GCC -Wsign-compare Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D40609 --- sbin/ifconfig/ifieee80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index d5a1dab4e064..93477f999003 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -2069,7 +2069,7 @@ regdomain_sort(const void *a, const void *b) static const struct ieee80211_channel * chanlookup(const struct ieee80211_channel chans[], int nchans, - int freq, int flags) + int freq, uint32_t flags) { int i; @@ -2084,7 +2084,7 @@ chanlookup(const struct ieee80211_channel chans[], int nchans, } static int -chanfind(const struct ieee80211_channel chans[], int nchans, unsigned int flags) +chanfind(const struct ieee80211_channel chans[], int nchans, uint32_t flags) { for (int i = 0; i < nchans; i++) { const struct ieee80211_channel *c = &chans[i]; @@ -2098,7 +2098,7 @@ chanfind(const struct ieee80211_channel chans[], int nchans, unsigned int flags) * Check channel compatibility. */ static int -checkchan(const struct ieee80211req_chaninfo *avail, int freq, int flags) +checkchan(const struct ieee80211req_chaninfo *avail, int freq, uint32_t flags) { flags &= ~REQ_FLAGS; /*