summaryrefslogtreecommitdiff
path: root/src/util/iohelper.c
diff options
context:
space:
mode:
authorJán Tomko <jtomko@redhat.com>2019-10-15 15:16:31 +0200
committerJán Tomko <jtomko@redhat.com>2019-10-16 12:06:43 +0200
commit1e2ae2e311c7453e7894e93688f8785736aa0618 (patch)
tree1b0711d8ce2f8052b8fc394d735693f5a4539477 /src/util/iohelper.c
parent2b2c67b401d10d9752fe9c390c88a1555ccbe947 (diff)
downloadlibvirt-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 'src/util/iohelper.c')
-rw-r--r--src/util/iohelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/iohelper.c b/src/util/iohelper.c
index 3dc0488b26..a102a95abb 100644
--- a/src/util/iohelper.c
+++ b/src/util/iohelper.c
@@ -42,7 +42,7 @@
static int
runIO(const char *path, int fd, int oflags)
{
- VIR_AUTOFREE(void *) base = NULL; /* Location to be freed */
+ g_autofree void *base = NULL; /* Location to be freed */
char *buf = NULL; /* Aligned location within base */
size_t buflen = 1024*1024;
intptr_t alignMask = 64*1024 - 1;