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

@@ -66,7 +66,7 @@ virshDomainNameCompleter(vshControl *ctl,
goto cleanup;
}
VIR_STEAL_PTR(ret, tmp);
ret = g_steal_pointer(&tmp);
cleanup:
for (i = 0; i < ndomains; i++)
@@ -122,7 +122,7 @@ virshDomainInterfaceCompleter(vshControl *ctl,
return NULL;
}
VIR_STEAL_PTR(ret, tmp);
ret = g_steal_pointer(&tmp);
return ret;
}
@@ -162,7 +162,7 @@ virshDomainDiskTargetCompleter(vshControl *ctl,
return NULL;
}
VIR_STEAL_PTR(ret, tmp);
ret = g_steal_pointer(&tmp);
return ret;
}
@@ -186,7 +186,7 @@ virshDomainEventNameCompleter(vshControl *ctl G_GNUC_UNUSED,
return NULL;
}
VIR_STEAL_PTR(ret, tmp);
ret = g_steal_pointer(&tmp);
return ret;
}
@@ -249,7 +249,7 @@ virshDomainInterfaceStateCompleter(vshControl *ctl,
return NULL;
}
VIR_STEAL_PTR(ret, tmp);
ret = g_steal_pointer(&tmp);
return ret;
}
@@ -292,7 +292,7 @@ virshDomainDeviceAliasCompleter(vshControl *ctl,
return NULL;
}
VIR_STEAL_PTR(ret, tmp);
ret = g_steal_pointer(&tmp);
return ret;
}