HomeFreeBSD

Use a different approach to range check.

Description

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
impAuthored on
Parents
rS350019: Fix filename to avoid skipping lib/libc/net/servent test.
Branches
Unknown
Tags
Unknown