HomeFreeBSD

MFC r350020 (by imp): Use a different approach to range check.

Description

MFC r350020 (by imp): Use a different approach to range check.

gcc hates dt < CC_DT_NONE since it can never be true when dt is an unsigned
type. Since that's a compiler choice and may be affected by weird stuff, instead
use (unsigned)dt > CC_DT_UNKNOWN to test for bounds error since that will work
regardless of the signedness of dt.

Details

Provenance
mavAuthored on
Parents
rS350797: MFC r350018 (by imp): Implement a devtype command.
Branches
Unknown
Tags
Unknown