mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
storage: gluster: Avoid name shadow on older compilers
s/link/linkpath/g in virStorageFileBackendGlusterReadlinkCallback as older gcc complains.
This commit is contained in:
parent
975f0e2eb4
commit
2cff94cc85
@ -717,7 +717,7 @@ virStorageFileBackendGlusterAccess(virStorageSourcePtr src,
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
virStorageFileBackendGlusterReadlinkCallback(const char *path,
|
virStorageFileBackendGlusterReadlinkCallback(const char *path,
|
||||||
char **link,
|
char **linkpath,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
virStorageFileBackendGlusterPrivPtr priv = data;
|
virStorageFileBackendGlusterPrivPtr priv = data;
|
||||||
@ -726,7 +726,7 @@ virStorageFileBackendGlusterReadlinkCallback(const char *path,
|
|||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
*link = NULL;
|
*linkpath = NULL;
|
||||||
|
|
||||||
if (glfs_stat(priv->vol, path, &st) < 0) {
|
if (glfs_stat(priv->vol, path, &st) < 0) {
|
||||||
virReportSystemError(errno,
|
virReportSystemError(errno,
|
||||||
@ -754,7 +754,7 @@ virStorageFileBackendGlusterReadlinkCallback(const char *path,
|
|||||||
|
|
||||||
buf[ret] = '\0';
|
buf[ret] = '\0';
|
||||||
|
|
||||||
*link = buf;
|
*linkpath = buf;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user