mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: nwfilter: Provide only virNWFilterDefParse
Replace virNWFilterDefParseString/File with the common function. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -255,7 +255,7 @@ virNWFilterDefToInst(const char *xml,
|
||||
{
|
||||
size_t i;
|
||||
int ret = -1;
|
||||
virNWFilterDef *def = virNWFilterDefParseFile(xml);
|
||||
virNWFilterDef *def = virNWFilterDefParse(NULL, xml, 0);
|
||||
|
||||
if (!def)
|
||||
return -1;
|
||||
|
||||
@@ -21,7 +21,7 @@ testCompareXMLToXMLFiles(const char *inxml, const char *outxml,
|
||||
|
||||
virResetLastError();
|
||||
|
||||
if (!(dev = virNWFilterDefParseFile(inxml))) {
|
||||
if (!(dev = virNWFilterDefParse(NULL, inxml, 0))) {
|
||||
if (expect_error) {
|
||||
virResetLastError();
|
||||
goto done;
|
||||
|
||||
Reference in New Issue
Block a user