mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Use g_autoptr instead of VIR_AUTOPTR
Since commit 44e7f02915
util: rewrite auto cleanup macros to use glib's equivalent
VIR_AUTOPTR aliases to g_autoptr. Replace all of its use by the GLib
macro version.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -47,10 +47,10 @@ testCompareXMLToArgvFiles(bool shouldFail,
|
||||
virStoragePoolDefPtr def = NULL;
|
||||
virStoragePoolObjPtr obj = NULL;
|
||||
g_autofree char *actualCmdline = NULL;
|
||||
VIR_AUTOPTR(virStorageVolDef) vol = NULL;
|
||||
VIR_AUTOPTR(virStorageVolDef) inputvol = NULL;
|
||||
VIR_AUTOPTR(virStoragePoolDef) inputpool = NULL;
|
||||
VIR_AUTOPTR(virCommand) cmd = NULL;
|
||||
g_autoptr(virStorageVolDef) vol = NULL;
|
||||
g_autoptr(virStorageVolDef) inputvol = NULL;
|
||||
g_autoptr(virStoragePoolDef) inputpool = NULL;
|
||||
g_autoptr(virCommand) cmd = NULL;
|
||||
|
||||
if (!(def = virStoragePoolDefParseFile(poolxml)))
|
||||
goto cleanup;
|
||||
|
||||
Reference in New Issue
Block a user