summaryrefslogtreecommitdiffstats
path: root/tools/pvmove.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2009-11-03 15:50:42 +0000
committerAlasdair Kergon <agk@redhat.com>2009-11-03 15:50:42 +0000
commita8fb89adafedf64ef0915635785b25fd36bbbdaa (patch)
tree50329bbea27193d91cde849660c833732714577d /tools/pvmove.c
parentbadfe1cfd22341cbb30316becc65b27c308b179e (diff)
downloadlvm2-a8fb89adafedf64ef0915635785b25fd36bbbdaa.tar.gz
lvm2-a8fb89adafedf64ef0915635785b25fd36bbbdaa.tar.xz
lvm2-a8fb89adafedf64ef0915635785b25fd36bbbdaa.zip
Tidy some uses of arg_count and introduce arg_is_set.
Diffstat (limited to 'tools/pvmove.c')
-rw-r--r--tools/pvmove.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c
index 7a63862d..ac09d6a5 100644
--- a/tools/pvmove.c
+++ b/tools/pvmove.c
@@ -608,6 +608,5 @@ int pvmove(struct cmd_context *cmd, int argc, char **argv)
}
}
- return pvmove_poll(cmd, pv_name,
- arg_count(cmd, background_ARG) ? 1U : 0);
+ return pvmove_poll(cmd, pv_name, arg_is_set(cmd, background_ARG));
}