HomeFreeBSD

zhack: fix getopt return type

Description

zhack: fix getopt return type

This fixes zhack's command processing on ARM. On ARM char
is unsigned, and so, in promotion to an int, it will never
compare equal to -1.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Nathaniel Wesley Filardo <nwf@cs.jhu.edu>
Closes #7016

Details

Provenance
Nathaniel Wesley Filardo <VP331RHQ115POU58JFRLKB7OPA0L18E3@cmx.ietfng.org>Authored on Jan 9 2018, 7:14 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 9 2018, 7:14 PM
Parents
rG0873bb633745: Fix ARC hit rate
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8b20a9f996b9: zhack: fix getopt return type (authored by Nathaniel Wesley Filardo <VP331RHQ115POU58JFRLKB7OPA0L18E3@cmx.ietfng.org>).Jan 9 2018, 7:14 PM