aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-02-10 12:28:05 +0000
committerDaniel P. Berrange <berrange@redhat.com>2010-02-10 13:32:48 +0000
commita70e599d80d38e095cd6f38a1067c4e1427143cf (patch)
tree8d9255598b6bc80e1105c7c11b5f2caa1bb39ee1 /tests
parentRemove virConnectPtr from CPU XML APIs (diff)
downloadlibvirt-a70e599d80d38e095cd6f38a1067c4e1427143cf.tar.gz
libvirt-a70e599d80d38e095cd6f38a1067c4e1427143cf.tar.bz2
libvirt-a70e599d80d38e095cd6f38a1067c4e1427143cf.zip
Remove virConnectPtr from interface 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 interface_conf.{h,c} and update all callers to match
Diffstat (limited to 'tests')
-rw-r--r--tests/interfacexml2xmltest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/interfacexml2xmltest.c b/tests/interfacexml2xmltest.c
index d8f1b43e7..094ccf511 100644
--- a/tests/interfacexml2xmltest.c
+++ b/tests/interfacexml2xmltest.c
@@ -29,10 +29,10 @@ static int testCompareXMLToXMLFiles(const char *xml) {
if (virtTestLoadFile(xml, &xmlPtr, MAX_FILE) < 0)
goto fail;
- if (!(dev = virInterfaceDefParseString(NULL, xmlData)))
+ if (!(dev = virInterfaceDefParseString(xmlData)))
goto fail;
- if (!(actual = virInterfaceDefFormat(NULL, dev)))
+ if (!(actual = virInterfaceDefFormat(dev)))
goto fail;
if (STRNEQ(xmlData, actual)) {