Use the correct return type for getopt otherwise clang complains
about tautological-constant-out-of-range-compare.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Sterling Jensen <sterlingjensen@users.noreply.github.com>
Closes #11359
{
boolean_t enabled[ZFS_WAIT_NUM_ACTIVITIES];
int error, i;
- char c;
+ int c;
/* By default, wait for all types of activity. */
for (i = 0; i < ZFS_WAIT_NUM_ACTIVITIES; i++)
main(int argc, char **argv)
{
boolean_t verbose = B_FALSE;
- char c;
+ int c;
while ((c = getopt(argc, argv, "v")) != -1) {
switch (c) {
case 'v':
zpool_do_wait(int argc, char **argv)
{
boolean_t verbose = B_FALSE;
- char c;
+ int c;
char *value;
int i;
unsigned long count;
zstream_do_redup(int argc, char *argv[])
{
boolean_t verbose = B_FALSE;
- char c;
+ int c;
while ((c = getopt(argc, argv, "v")) != -1) {
switch (c) {
int failed_tests = 0;
struct timeval tp;
zfs_btree_t bt;
- char c;
+ int c;
while ((c = getopt(argc, argv, "c:l:n:r:st:")) != -1) {
switch (c) {