aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-02-10 10:40:18 +0000
committerDaniel P. Berrange <berrange@redhat.com>2010-02-10 13:32:01 +0000
commit99edc443e905d30283c09a1ea7f3b4a5215f0ade (patch)
treef71c3c04df566b9990263d66fa7ef60417c0ea6f /tests
parentRemove virConnectPtr from network XML APis (diff)
downloadlibvirt-99edc443e905d30283c09a1ea7f3b4a5215f0ade.tar.gz
libvirt-99edc443e905d30283c09a1ea7f3b4a5215f0ade.tar.bz2
libvirt-99edc443e905d30283c09a1ea7f3b4a5215f0ade.zip
Remove virConnectPtr from all node device 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 node_device_conf.{h,c} and update all callers to match
Diffstat (limited to 'tests')
-rw-r--r--tests/nodedevxml2xmltest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/nodedevxml2xmltest.c b/tests/nodedevxml2xmltest.c
index bf8be7e5c..2bc67436b 100644
--- a/tests/nodedevxml2xmltest.c
+++ b/tests/nodedevxml2xmltest.c
@@ -29,10 +29,10 @@ static int testCompareXMLToXMLFiles(const char *xml) {
if (virtTestLoadFile(xml, &xmlPtr, MAX_FILE) < 0)
goto fail;
- if (!(dev = virNodeDeviceDefParseString(NULL, xmlData, EXISTING_DEVICE)))
+ if (!(dev = virNodeDeviceDefParseString(xmlData, EXISTING_DEVICE)))
goto fail;
- if (!(actual = virNodeDeviceDefFormat(NULL, dev)))
+ if (!(actual = virNodeDeviceDefFormat(dev)))
goto fail;
if (STRNEQ(xmlData, actual)) {