HomeFreeBSD

ifconfig: Pacify a sign comparison warning in regdomain_sort.

Description

ifconfig: Pacify a sign comparison warning in regdomain_sort.

Both ic_flags values are unsigned (uint32_t), so cast them to a signed
int to generate a signed result. Both ic_req values are also
unsigned, but since they are uint16_t, they are implicitly promited to
int before the subtraction.

Reported by: GCC -Wsign-compare
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D40610

Details

Provenance
jhbAuthored on Jun 19 2023, 5:38 PM
Reviewer
emaste
Differential Revision
D40610: ifconfig: Pacify a sign comparison warning in regdomain_sort.
Parents
rGa3b1138778f3: ifconfig: Consistently use uint32_t for wireless channel flags.
Branches
Unknown
Tags
Unknown