]> sourceware.org Git - lvm2.git/commitdiff
cleanup: gcc warning
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 15 Aug 2014 13:43:42 +0000 (15:43 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 15 Aug 2014 13:43:42 +0000 (15:43 +0200)
One more:

metadata/thin_manip.c:503: warning: declaration of "snapshot_count" shadows a global declaration

lib/metadata/thin_manip.c

index b4da5003ffb04790c586a34fcc12eed34474e806..ae42da1693ddc24a18d64efaf4d5188e5a8b2a11 100644 (file)
@@ -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;
This page took 0.03904 seconds and 5 git commands to generate.