diff options
Diffstat (limited to 'tools/lvm.c')
-rw-r--r-- | tools/lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lvm.c b/tools/lvm.c index 8e82ce1b..7f654d78 100644 --- a/tools/lvm.c +++ b/tools/lvm.c @@ -390,7 +390,7 @@ static void add_getopt_arg(int arg, char **ptr, struct option **o) (*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)++; } } @@ -460,7 +460,7 @@ static struct arg *find_arg(struct command *com, int opt) 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; } |