提交 0cb171f6 编写于 作者: S Stefan Berger 提交者: Stefan Berger

Fix compilation error in util/vircgroup.c

Fix the error

util/vircgroup.c: In function 'virCgroupNewDomainPartition':
util/vircgroup.c:1299:11: error: declaration of 'dirname' shadows a global declaration [-Werror=shadow]
Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
上级 d94a3cfc
......@@ -1296,13 +1296,13 @@ int virCgroupNewDomainPartition(virCgroupPtr partition,
virCgroupPtr *group)
{
int rc;
char *dirname = NULL;
char *grpname = NULL;
if (virAsprintf(&dirname, "%s.%s.libvirt",
if (virAsprintf(&grpname, "%s.%s.libvirt",
name, driver) < 0)
return -ENOMEM;
rc = virCgroupNew(dirname, partition, -1, group);
rc = virCgroupNew(grpname, partition, -1, group);
if (rc == 0) {
/*
......@@ -1322,7 +1322,7 @@ int virCgroupNewDomainPartition(virCgroupPtr partition,
}
}
VIR_FREE(dirname);
VIR_FREE(grpname);
return rc;
}
#else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册