summaryrefslogtreecommitdiffstats
path: root/tools/lvm.c
diff options
context:
space:
mode:
authorJoe Thornber <thornber@redhat.com>2001-11-22 14:37:07 +0000
committerJoe Thornber <thornber@redhat.com>2001-11-22 14:37:07 +0000
commit60140607cfae39b9041ffa023e43ac28b282322d (patch)
treea0b52c3aee5936517f3391c8a943cef1d22ff981 /tools/lvm.c
parent3080a754451caa789400f143f4091df89c3c5416 (diff)
downloadlvm2-60140607cfae39b9041ffa023e43ac28b282322d.tar.gz
lvm2-60140607cfae39b9041ffa023e43ac28b282322d.tar.xz
lvm2-60140607cfae39b9041ffa023e43ac28b282322d.zip
o Make sure that every switch has a short option, even if it's
non-displayable so we can remove the pointer mangling that was breaking 64bit arch.s
Diffstat (limited to 'tools/lvm.c')
-rw-r--r--tools/lvm.c4
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;
}