From 6fa41e8a21e1f2fb8ac306abd3b94bb6823aae9f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 27 Feb 2012 10:06:58 +0000 Subject: [PATCH] Make force_t enum usage obvious --- tools/vgreduce.c | 2 +- tools/vgremove.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/vgreduce.c b/tools/vgreduce.c index 3adafb2ac..7815abe50 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -104,7 +104,7 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg) if (!lv_is_visible(lv)) continue; log_warn("Removing partial LV %s.", lv->name); - if (!lv_remove_with_dependencies(cmd, lv, 1, 0)) + if (!lv_remove_with_dependencies(cmd, lv, DONT_PROMPT, 0)) return_0; goto restart; } diff --git a/tools/vgremove.c b/tools/vgremove.c index 67e3767b4..6804f2af9 100644 --- a/tools/vgremove.c +++ b/tools/vgremove.c @@ -29,7 +29,7 @@ static int vgremove_single(struct cmd_context *cmd, const char *vg_name, lv_count = vg_visible_lvs(vg); - force = arg_count(cmd, force_ARG); + force = (force_t) arg_count(cmd, force_ARG); if (lv_count) { if (force == PROMPT) { if ((missing = vg_missing_pv_count(vg)))