mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-27 11:34:09 +03: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:
@@ -18,9 +18,9 @@ testParseFormatFW(const void *opaque)
|
||||
{
|
||||
const char *filename = opaque;
|
||||
g_autofree char *path = NULL;
|
||||
VIR_AUTOPTR(qemuFirmware) fw = NULL;
|
||||
g_autoptr(qemuFirmware) fw = NULL;
|
||||
g_autofree char *buf = NULL;
|
||||
VIR_AUTOPTR(virJSONValue) json = NULL;
|
||||
g_autoptr(virJSONValue) json = NULL;
|
||||
g_autofree char *expected = NULL;
|
||||
g_autofree char *actual = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user