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

Peter Krempa pkrempa at redhat.com
Tue Jun 24 09:24:46 UTC 2014


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




More information about the libvir-list mailing list