]> granicus.if.org Git - zfs/commit
zhack: fix getopt return type
authorNathaniel Wesley Filardo <VP331RHQ115POU58JFRLKB7OPA0L18E3@cmx.ietfng.org>
Tue, 9 Jan 2018 19:14:45 +0000 (14:14 -0500)
committerTony Hutter <hutter2@llnl.gov>
Tue, 30 Jan 2018 16:27:31 +0000 (10:27 -0600)
commita2ee6568c604fb455d6ee7fa51728fb2bc700dac
treef79ca9e7c9b80890ba7dcc0d9178d4eb90a1c246
parent9c1a8eaa51fa8db151570cb1da3199a46e9236d3
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
cmd/zhack/zhack.c