[PATCH] storage: gluster: Avoid name shadow on older compilers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



s/link/linkpath/g in virStorageFileBackendGlusterReadlinkCallback as
older gcc complains.
---

Notes:
    Pushed as trivial.

 src/storage/storage_backend_gluster.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/storage/storage_backend_gluster.c b/src/storage/storage_backend_gluster.c
index c8077a1..cab23b0 100644
--- a/src/storage/storage_backend_gluster.c
+++ b/src/storage/storage_backend_gluster.c
@@ -717,7 +717,7 @@ virStorageFileBackendGlusterAccess(virStorageSourcePtr src,

 static int
 virStorageFileBackendGlusterReadlinkCallback(const char *path,
-                                             char **link,
+                                             char **linkpath,
                                              void *data)
 {
     virStorageFileBackendGlusterPrivPtr priv = data;
@@ -726,7 +726,7 @@ virStorageFileBackendGlusterReadlinkCallback(const char *path,
     ssize_t ret;
     struct stat st;

-    *link = NULL;
+    *linkpath = NULL;

     if (glfs_stat(priv->vol, path, &st) < 0) {
         virReportSystemError(errno,
@@ -754,7 +754,7 @@ virStorageFileBackendGlusterReadlinkCallback(const char *path,

     buf[ret] = '\0';

-    *link = buf;
+    *linkpath = buf;

     return 0;

-- 
1.9.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]