summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2014-04-15 11:33:33 -0500
committerDavid Teigland <teigland@redhat.com>2014-04-15 11:34:28 -0500
commit38239d1a808e32944872cc1d9b6cf0bfb82d7c2f (patch)
treedb1136fbc8adaaf0754c7bd0091f148a75ca9d42
parentc4d4ec7bbe5c44b76196e7cf7d0a957ff73fd0ed (diff)
downloadlvm2-38239d1a808e32944872cc1d9b6cf0bfb82d7c2f.tar.gz
toollib: rename tags function arg
to avoid conflict with any global definition.
-rw-r--r--tools/toollib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/toollib.c b/tools/toollib.c
index c087a0d66..b31f6dcc1 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -1438,7 +1438,7 @@ int process_each_vg(struct cmd_context *cmd,
int process_each_lv_in_vg(struct cmd_context *cmd,
struct volume_group *vg,
struct dm_list *arg_lvnames,
- const struct dm_list *tags,
+ const struct dm_list *tags_in,
void *handle,
process_single_lv_fn_t process_single_lv)
{
@@ -1454,7 +1454,7 @@ int process_each_lv_in_vg(struct cmd_context *cmd,
if (!vg_check_status(vg, EXPORTED_VG))
return_ECMD_FAILED;
- if (tags && !dm_list_empty(tags))
+ if (tags_in && !dm_list_empty(tags_in))
tags_supplied = 1;
if (arg_lvnames && !dm_list_empty(arg_lvnames))
@@ -1466,7 +1466,7 @@ int process_each_lv_in_vg(struct cmd_context *cmd,
/* Or if VG tags match */
if (!process_lv && tags_supplied &&
- str_list_match_list(tags, &vg->tags, NULL)) {
+ str_list_match_list(tags_in, &vg->tags, NULL)) {
process_all = 1;
}
@@ -1502,7 +1502,7 @@ int process_each_lv_in_vg(struct cmd_context *cmd,
/* LV tag match? */
if (!process_lv && tags_supplied &&
- str_list_match_list(tags, &lvl->lv->tags, NULL)) {
+ str_list_match_list(tags_in, &lvl->lv->tags, NULL)) {
process_lv = 1;
}