summaryrefslogtreecommitdiff
path: root/tests/qemustatusxml2xmltest.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2022-07-13 15:26:51 -0500
committerJonathon Jongsma <jjongsma@redhat.com>2022-07-15 16:44:39 -0500
commit62ca3005307e9b07ebdcf09ac9742c8f8be1c072 (patch)
treeb3c797f52d7539a108023964333cd071d4767447 /tests/qemustatusxml2xmltest.c
parentd531b9c724187e31bb72b5878d5c0435d3c0c33e (diff)
downloadlibvirt-62ca3005307e9b07ebdcf09ac9742c8f8be1c072.tar.gz
util: remove virObjectUnref() adapters
These wrapper functions were used to adapt the virObjectUnref() function signature for different callbacks. But in commit 0d184072, the virObjectUnref() function was changed to return a void instead of a bool, so these adapters are no longer necessary. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
Diffstat (limited to 'tests/qemustatusxml2xmltest.c')
-rw-r--r--tests/qemustatusxml2xmltest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemustatusxml2xmltest.c b/tests/qemustatusxml2xmltest.c
index cd43820551..db82a1a980 100644
--- a/tests/qemustatusxml2xmltest.c
+++ b/tests/qemustatusxml2xmltest.c
@@ -78,7 +78,7 @@ mymain(void)
int ret = 0;
g_autofree char *fakerootdir = NULL;
g_autoptr(GHashTable) capslatest = testQemuGetLatestCaps();
- g_autoptr(GHashTable) capscache = virHashNew(virObjectFreeHashData);
+ g_autoptr(GHashTable) capscache = virHashNew(virObjectUnref);
g_autoptr(virConnect) conn = NULL;
struct testQemuConf testConf = { .capslatest = capslatest,
.capscache = capscache,