From nobody Wed Nov 15 02:37:47 2023 X-Original-To: dev-commits-src-main@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 4SVS4r1X2cz50XGq; Wed, 15 Nov 2023 02:37:48 +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 4SVS4q6J1Gz4XxS; Wed, 15 Nov 2023 02:37:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700015867; 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=dn2b5hh+RLf9fae5tKO+KP9v2/x6WStVqJUtgOtqrR4=; b=LF9P9I3SWatqvYBkT2Py39fxGOKcOfqQn8KdM96aruZ1sm5JMkewl62pYxtJZzlVrFHQ4x YvWCyczi/EXumCGyLAR7Hlnzi/5p+G1L8GbEMm8H0Xv8XMQXokQbFFd5yJoUDeciXAX3Zm YAiHTkwgop5akQMYM6jOUSCUaeZW6N3LBBf2kiHkPl237OFq/iRF63IoEtPiKGE+j6sf64 zCDVEpvMlY6DiXNHkNE3cW6z5CWPwwRq0JNcKER2GBCSDJ+KLp3bwuYefDUDDJTFopTAfQ Q8WxZF/HYCl/XdYgBvgsKhtElzEk7tRPTwOnpyEMjWCGrGg+g9PQCQbNBX46OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700015867; 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=dn2b5hh+RLf9fae5tKO+KP9v2/x6WStVqJUtgOtqrR4=; b=X0mlaraCkI/JT1MqdW8q3fUTN6WZ5uW1cxXyL597vBo9YjCfIMsO/T/oTVjDCWvXj0DUci y/S5ipU3/unLKq3WfeRwi4dSN+U7aYcKERNzltsVAuFGT9XVg+sRYMY4yHgLc1hNBqVNwK REuq8CviHwS/13NOCGX0IsQGXej4jGeEskoJsGWjbxBghXfwJWsai1lbcN/NdUG6D28o86 AZZLZSWRiqFHh/pTOm1u91NUDZW6eHl8sFLiC5eUsnqjTRJ0iw1wyRfHFQ9yaEkrwQw7vn tN2AIAxvbnoWYBAxRQF/2JDaO3drp9nBMexPv//Oki5mSc5IAx/Yvn7sqt9cFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700015867; a=rsa-sha256; cv=none; b=CIBWn/wHLDOWbWzf5u5DCZDJEsr6ET2n6cXXzEHHL8/hHfh7VyKIhjZ71xC+JRyJJ9BSeN XWmK5+vMoVjo9XWYHe2qTE14GE1Itq8Tnbm1GuifNSingZ5ryjPDNRXQV3bvqbIERAu055 oBG8t4WKaXZ8ZmxAcTS9YkrVLgzG4ck/EiX+3lzzMYvjwxYZ9ErN9SYH8qKvXLju05XUXP hRorSP3yOfhULyNGwihjbRxs9zJcgQZMO7i63843idrPaZf6ZLlhwsf1HSS1OFo+VNjSA9 MkyXTNv1U4V+CT2NxGD23RfaWVU6uNZnHLmZRrU3OLOa8Bb7Hx+R62zh9Zey5A== 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 4SVS4q5Q6bz1DCB; Wed, 15 Nov 2023 02:37:47 +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 3AF2blv9009886; Wed, 15 Nov 2023 02:37:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AF2blcU009883; Wed, 15 Nov 2023 02:37:47 GMT (envelope-from git) Date: Wed, 15 Nov 2023 02:37:47 GMT Message-Id: <202311150237.3AF2blcU009883@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: cc61bf9eccd4 - main - snmp_wlan: Fix a couple of type mismatches in function prototypes List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: cc61bf9eccd46592704f3e7bc189c94ccae8f524 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=cc61bf9eccd46592704f3e7bc189c94ccae8f524 commit cc61bf9eccd46592704f3e7bc189c94ccae8f524 Author: John Baldwin AuthorDate: 2023-11-15 02:36:03 +0000 Commit: John Baldwin CommitDate: 2023-11-15 02:36:03 +0000 snmp_wlan: Fix a couple of type mismatches in function prototypes Reported by: GCC 13 via -Wenum-int-mismatch Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D42582 --- usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c b/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c index e5a6e0653b39..b129e42b9d85 100644 --- a/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c +++ b/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c @@ -68,8 +68,8 @@ static uint32_t wlan_cryptocaps_to_snmp(uint32_t); static uint32_t wlan_htcaps_to_snmp(uint32_t); static uint32_t wlan_peerstate_to_snmp(uint32_t); static uint32_t wlan_peercaps_to_snmp(uint32_t ); -static uint32_t wlan_channel_flags_to_snmp_phy(uint32_t); -static uint32_t wlan_regdomain_to_snmp(int); +static enum WlanIfPhyMode wlan_channel_flags_to_snmp_phy(uint32_t); +static enum WlanRegDomainCode wlan_regdomain_to_snmp(int); static uint32_t wlan_snmp_to_scan_flags(int); static int wlan_config_snmp2ioctl(int); static int wlan_snmp_to_regdomain(enum WlanRegDomainCode);