xx(uuidlist_ARG, 'U', "uuidlist", NULL)
xx(verbose_ARG, 'v', "verbose", NULL)
xx(volumegroup_ARG, 'V', "volumegroup", NULL)
-xx(version_ARG, '\0', "version", NULL)
+xx(version_ARG, (char) 0x1, "version", NULL)
xx(allocation_ARG, 'x', "allocation", yes_no_arg)
xx(yes_ARG, 'y', "yes", NULL)
xx(zero_ARG, 'Z', "zero", yes_no_arg)
(*o)->name = a->long_arg + 2;
(*o)->has_arg = a->fn ? 1 : 0;
(*o)->flag = NULL;
- (*o)->val = a->short_arg ? a->short_arg : (int) a;
+ (*o)->val = a->short_arg;
(*o)++;
}
}
for (i = 0; i < com->num_args; i++) {
a = the_args + com->valid_args[i];
- if ((opt == a->short_arg) || (opt == (int) a))
+ if (opt == a->short_arg)
return a;
}