mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-26 07:34:04 +03:00
virbuffer: use g_auto directly for virBuffer
Since commit 44e7f02915
util: rewrite auto cleanup macros to use glib's equivalent
VIR_AUTOCLEAN is just an alias for g_auto. Use the GLib macros
directly instead of our custom aliases.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -511,7 +511,7 @@ qemuMonitorTestProcessCommandDefaultValidate(qemuMonitorTestPtr test,
|
||||
const char *cmdname,
|
||||
virJSONValuePtr args)
|
||||
{
|
||||
VIR_AUTOCLEAN(virBuffer) debug = VIR_BUFFER_INITIALIZER;
|
||||
g_auto(virBuffer) debug = VIR_BUFFER_INITIALIZER;
|
||||
virJSONValuePtr schemaroot;
|
||||
VIR_AUTOPTR(virJSONValue) emptyargs = NULL;
|
||||
VIR_AUTOFREE(char *) schemapath = NULL;
|
||||
|
||||
Reference in New Issue
Block a user