mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +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
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user