mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Use g_autofree instead of VIR_AUTOFREE
Since commit 44e7f02915
util: rewrite auto cleanup macros to use glib's equivalent
VIR_AUTOFREE is just an alias for g_autofree. 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:
@@ -17,12 +17,12 @@ static int
|
||||
testParseFormatVU(const void *opaque)
|
||||
{
|
||||
const char *filename = opaque;
|
||||
VIR_AUTOFREE(char *) path = NULL;
|
||||
g_autofree char *path = NULL;
|
||||
VIR_AUTOPTR(qemuVhostUser) vu = NULL;
|
||||
VIR_AUTOFREE(char *) buf = NULL;
|
||||
g_autofree char *buf = NULL;
|
||||
VIR_AUTOPTR(virJSONValue) json = NULL;
|
||||
VIR_AUTOFREE(char *) expected = NULL;
|
||||
VIR_AUTOFREE(char *) actual = NULL;
|
||||
g_autofree char *expected = NULL;
|
||||
g_autofree char *actual = NULL;
|
||||
|
||||
if (virAsprintf(&path, "%s/qemuvhostuserdata/%s",
|
||||
abs_srcdir, filename) < 0)
|
||||
@@ -57,7 +57,7 @@ testParseFormatVU(const void *opaque)
|
||||
static int
|
||||
testVUPrecedence(const void *opaque G_GNUC_UNUSED)
|
||||
{
|
||||
VIR_AUTOFREE(char *) fakehome = NULL;
|
||||
g_autofree char *fakehome = NULL;
|
||||
VIR_AUTOSTRINGLIST vuList = NULL;
|
||||
size_t nvuList;
|
||||
size_t i;
|
||||
|
||||
Reference in New Issue
Block a user