From 8af23092310aeb02282f5082fba447586a1da0d3 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 15 Aug 2014 15:43:42 +0200 Subject: [PATCH] cleanup: gcc warning One more: metadata/thin_manip.c:503: warning: declaration of "snapshot_count" shadows a global declaration --- lib/metadata/thin_manip.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/metadata/thin_manip.c b/lib/metadata/thin_manip.c index b4da5003f..ae42da169 100644 --- a/lib/metadata/thin_manip.c +++ b/lib/metadata/thin_manip.c @@ -500,13 +500,13 @@ const char *get_pool_discards_name(thin_discards_t discards) return "unknown"; } -int lv_is_thin_origin(const struct logical_volume *lv, unsigned int *snapshot_count) +int lv_is_thin_origin(const struct logical_volume *lv, unsigned int *snap_count) { struct seg_list *segl; int r = 0; - if (snapshot_count) - *snapshot_count = 0; + if (snap_count) + *snap_count = 0; if (!lv_is_thin_volume(lv) || dm_list_empty(&lv->segs_using_this_lv)) @@ -515,8 +515,8 @@ int lv_is_thin_origin(const struct logical_volume *lv, unsigned int *snapshot_co dm_list_iterate_items(segl, &lv->segs_using_this_lv) { if (segl->seg->origin == lv) { r = 1; - if (snapshot_count) - (*snapshot_count)++; + if (snap_count) + (*snap_count)++; else /* not interested in number of snapshots */ break;