提交 2cff94cc 编写于 作者: P Peter Krempa

storage: gluster: Avoid name shadow on older compilers

s/link/linkpath/g in virStorageFileBackendGlusterReadlinkCallback as
older gcc complains.
上级 975f0e2e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册