diff options
author | Alasdair G Kergon <agk@redhat.com> | 2016-06-21 22:24:52 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2016-06-21 22:24:52 +0100 |
commit | 7e671e5dd0af699244902d5ce71a7159253c9e2b (patch) | |
tree | ce14c9ff42cc60f8255a735dcae8f3e34ca1775e /tools/vgcreate.c | |
parent | 6c269e639a121329fc035685f944816a763b23cf (diff) | |
download | lvm2-7e671e5dd0af699244902d5ce71a7159253c9e2b.tar.gz |
tools: Use arg_is_set instead of arg_count.
Diffstat (limited to 'tools/vgcreate.c')
-rw-r--r-- | tools/vgcreate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgcreate.c b/tools/vgcreate.c index 974d7e785..14e0d538a 100644 --- a/tools/vgcreate.c +++ b/tools/vgcreate.c @@ -141,7 +141,7 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv) log_warn("WARNING: Setting maxphysicalvolumes to %d " "(0 means unlimited)", vg->max_pv); - if (arg_count(cmd, addtag_ARG)) { + if (arg_is_set(cmd, addtag_ARG)) { dm_list_iterate_items(current_group, &cmd->arg_value_groups) { if (!grouped_arg_is_set(current_group->arg_values, addtag_ARG)) continue; |