diff options
author | David Teigland <teigland@redhat.com> | 2014-04-15 11:33:33 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2014-04-22 13:39:49 -0500 |
commit | c65ea406f96e65f2f8b80f9936df0320db34a93c (patch) | |
tree | 8f52e6b4b4007d17d6d9a11f1b27431aa3866a59 | |
parent | 6e15528f6e9fd2249cd8ece69dc73a2d2da14aa7 (diff) | |
download | lvm2-c65ea406f96e65f2f8b80f9936df0320db34a93c.tar.gz |
toollib: rename tags function arg
to avoid conflict with any global definition.
-rw-r--r-- | tools/toollib.c | 8 |
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; } |