HomeFreeBSD

stress2: Use the proper type for the getopt(3) return value

Description

stress2: Use the proper type for the getopt(3) return value

On arm platforms "char" is typically unsigned, in which case the test
"(c = getopt(...)) != -1" does not behave as desired.

Reviewed by: pho
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45365

Details

Provenance
markjAuthored on May 25 2024, 4:52 PM
Reviewer
pho
Differential Revision
D45365: stress2: Use the proper type for the getopt(3) return value
Parents
rG4c053c17f2c8: zfs: Update use of UMA-related symbols in arc_available_memory
Branches
Unknown
Tags
Unknown