git: a3b1138778f3 - main - ifconfig: Consistently use uint32_t for wireless channel flags.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Jun 2023 17:38:30 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a3b1138778f347288f0f3f08c1e46b1ea411afdb commit a3b1138778f347288f0f3f08c1e46b1ea411afdb Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-06-19 17:38:07 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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; /*