tools: use g_steal_pointer instead of VIR_STEAL_PTR

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko
2019-10-16 13:43:36 +02:00
parent 72a1bb8e4c
commit 4f7c65da27
13 changed files with 24 additions and 24 deletions

View File

@@ -57,7 +57,7 @@ virshNodeDeviceNameCompleter(vshControl *ctl,
goto cleanup;
}
VIR_STEAL_PTR(ret, tmp);
ret = g_steal_pointer(&tmp);
cleanup:
for (i = 0; i < ndevs; i++)
@@ -86,7 +86,7 @@ virshNodeDeviceEventNameCompleter(vshControl *ctl G_GNUC_UNUSED,
return NULL;
}
VIR_STEAL_PTR(ret, tmp);
ret = g_steal_pointer(&tmp);
return ret;
}