]> sourceware.org Git - lvm2.git/commitdiff
gcc: avoid declaration shadowing
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 1 Nov 2019 18:35:28 +0000 (19:35 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 11 Nov 2019 21:44:18 +0000 (22:44 +0100)
dev_name is global in device.h

lib/activate/dev_manager.c

index 1adb44d7b65aa6a19272d710f64e97464c5e8808..51ba298b9b84cf72c4b966ea5694b1555fb36b00 100644 (file)
@@ -259,7 +259,7 @@ static int _info_run(const char *dlid, struct dm_info *dminfo,
        void *target = NULL;
        uint64_t target_start, target_length, start, length;
        char *target_name, *target_params;
-       const char *dev_name;
+       const char *devname;
 
        if (seg_status) {
                dmtask = DM_DEVICE_STATUS;
@@ -274,8 +274,8 @@ static int _info_run(const char *dlid, struct dm_info *dminfo,
                return_0;
 
        if (name_check && dminfo->exists &&
-           (dev_name = dm_task_get_name(dmt)) &&
-           (strcmp(name_check, dev_name) != 0))
+           (devname = dm_task_get_name(dmt)) &&
+           (strcmp(name_check, devname) != 0))
                dminfo->exists = 0;     /* mismatching name -> device does not exist */
 
        if (with_read_ahead && dminfo->exists) {
This page took 1.511671 seconds and 5 git commands to generate.