aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-02-10 10:22:52 +0000
committerDaniel P. Berrange <berrange@redhat.com>2010-02-10 13:31:28 +0000
commit0677e11125a2426331d09db66c1740837ea8dd38 (patch)
tree3687430b669d28c8bd01590c534d7cd7bb1ac635 /tests
parentRemove virConnectPtr from USB/PCI device iterators (diff)
downloadlibvirt-0677e11125a2426331d09db66c1740837ea8dd38.tar.gz
libvirt-0677e11125a2426331d09db66c1740837ea8dd38.tar.bz2
libvirt-0677e11125a2426331d09db66c1740837ea8dd38.zip
Remove virConnectPtr from network XML APis
The virConnectPtr is no longer required for error reporting since that is recorded in a thread local. Remove use of virConnectPtr from all APIs in network_conf.{h,c} and update all callers to match
Diffstat (limited to 'tests')
-rw-r--r--tests/networkxml2xmltest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/networkxml2xmltest.c b/tests/networkxml2xmltest.c
index 957e64b8a..780554863 100644
--- a/tests/networkxml2xmltest.c
+++ b/tests/networkxml2xmltest.c
@@ -33,10 +33,10 @@ static int testCompareXMLToXMLFiles(const char *inxml, const char *outxml) {
if (virtTestLoadFile(outxml, &outXmlPtr, MAX_FILE) < 0)
goto fail;
- if (!(dev = virNetworkDefParseString(NULL, inXmlData)))
+ if (!(dev = virNetworkDefParseString(inXmlData)))
goto fail;
- if (!(actual = virNetworkDefFormat(NULL, dev)))
+ if (!(actual = virNetworkDefFormat(dev)))
goto fail;
if (STRNEQ(outXmlData, actual)) {