提交 324fd3a3 编写于 作者: J John Ferlan

nwfilter: Replace virNWFilterConfigFile with virFileBuildPath

Remove open coded helper.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 6b73a132
......@@ -2775,7 +2775,7 @@ virNWFilterSaveXML(const char *configDir,
char *configFile = NULL;
int ret = -1;
if ((configFile = virNWFilterConfigFile(configDir, def->name)) == NULL)
if (!(configFile = virFileBuildPath(configDir, def->name, ".xml")))
goto cleanup;
if (virFileMakePath(configDir) < 0) {
......@@ -3236,17 +3236,6 @@ virNWFilterDefFormat(const virNWFilterDef *def)
}
char *
virNWFilterConfigFile(const char *dir,
const char *name)
{
char *ret = NULL;
ignore_value(virAsprintf(&ret, "%s/%s.xml", dir, name));
return ret;
}
int
virNWFilterConfLayerInit(virDomainObjListIterator domUpdateCB,
void *opaque)
......
......@@ -593,10 +593,6 @@ int
virNWFilterSaveConfig(const char *configDir,
virNWFilterDefPtr def);
char *
virNWFilterConfigFile(const char *dir,
const char *name);
virNWFilterDefPtr
virNWFilterDefParseString(const char *xml);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册