diff options
author | Ján Tomko <jtomko@redhat.com> | 2019-10-15 15:16:31 +0200 |
---|---|---|
committer | Ján Tomko <jtomko@redhat.com> | 2019-10-16 12:06:43 +0200 |
commit | 1e2ae2e311c7453e7894e93688f8785736aa0618 (patch) | |
tree | 1b0711d8ce2f8052b8fc394d735693f5a4539477 /tests/storagepoolxml2xmltest.c | |
parent | 2b2c67b401d10d9752fe9c390c88a1555ccbe947 (diff) | |
download | libvirt-1e2ae2e311c7453e7894e93688f8785736aa0618.tar.gz |
Use g_autofree instead of VIR_AUTOFREE
Since commit 44e7f029159ed701b4a1739ac711507ee53790ed
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>
Diffstat (limited to 'tests/storagepoolxml2xmltest.c')
-rw-r--r-- | tests/storagepoolxml2xmltest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/storagepoolxml2xmltest.c b/tests/storagepoolxml2xmltest.c index 96dd04faec..4fb37c976a 100644 --- a/tests/storagepoolxml2xmltest.c +++ b/tests/storagepoolxml2xmltest.c @@ -18,7 +18,7 @@ static int testCompareXMLToXMLFiles(const char *inxml, const char *outxml) { - VIR_AUTOFREE(char *) actual = NULL; + g_autofree char *actual = NULL; VIR_AUTOPTR(virStoragePoolDef) dev = NULL; if (!(dev = virStoragePoolDefParseFile(inxml))) @@ -36,8 +36,8 @@ testCompareXMLToXMLFiles(const char *inxml, const char *outxml) static int testCompareXMLToXMLHelper(const void *data) { - VIR_AUTOFREE(char *) inxml = NULL; - VIR_AUTOFREE(char *) outxml = NULL; + g_autofree char *inxml = NULL; + g_autofree char *outxml = NULL; if (virAsprintf(&inxml, "%s/storagepoolxml2xmlin/%s.xml", abs_srcdir, (const char*)data) < 0 || |