]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
storage: gluster: Avoid name shadow on older compilers
authorPeter Krempa <pkrempa@redhat.com>
Tue, 24 Jun 2014 09:22:17 +0000 (11:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 24 Jun 2014 09:22:17 +0000 (11:22 +0200)
s/link/linkpath/g in virStorageFileBackendGlusterReadlinkCallback as
older gcc complains.

src/storage/storage_backend_gluster.c

index c8077a1bf9eecd825fce45500409e6c0412ab073..cab23b06f548a5f4891d43df37032cc064ca6b3a 100644 (file)
@@ -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;