diff options
author | Ján Tomko <jtomko@redhat.com> | 2019-10-15 14:47:50 +0200 |
---|---|---|
committer | Ján Tomko <jtomko@redhat.com> | 2019-10-16 12:06:43 +0200 |
commit | 45678bd70a6987f17a2acfa9a6e242a75e207de4 (patch) | |
tree | bb02d42d945df0a1ef4af155436d3908a5290df6 /tests/virbitmaptest.c | |
parent | 8334203f9102057b352d196ce4301e49945dd5d9 (diff) | |
download | libvirt-45678bd70a6987f17a2acfa9a6e242a75e207de4.tar.gz |
Use g_autoptr instead of VIR_AUTOPTR
Since commit 44e7f029159ed701b4a1739ac711507ee53790ed
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>
Diffstat (limited to 'tests/virbitmaptest.c')
-rw-r--r-- | tests/virbitmaptest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/virbitmaptest.c b/tests/virbitmaptest.c index ff6b506b7d..545e9272df 100644 --- a/tests/virbitmaptest.c +++ b/tests/virbitmaptest.c @@ -745,9 +745,9 @@ static int test15(const void *opaque) { const struct testBinaryOpData *data = opaque; - VIR_AUTOPTR(virBitmap) amap = NULL; - VIR_AUTOPTR(virBitmap) bmap = NULL; - VIR_AUTOPTR(virBitmap) resmap = NULL; + g_autoptr(virBitmap) amap = NULL; + g_autoptr(virBitmap) bmap = NULL; + g_autoptr(virBitmap) resmap = NULL; if (!(amap = virBitmapParseUnlimited(data->a)) || !(bmap = virBitmapParseUnlimited(data->b)) || |