diff options
author | Ján Tomko <jtomko@redhat.com> | 2019-10-16 13:43:52 +0200 |
---|---|---|
committer | Ján Tomko <jtomko@redhat.com> | 2019-10-16 15:59:42 +0200 |
commit | a3931b4996e46db409ad031e0230a507fb303287 (patch) | |
tree | e9f07e6470b96e4a5542922f22d283405c4916b1 /src/util/vircgroupv1.c | |
parent | 4f7c65da271f38f587d57792f437b5e82fa1cb51 (diff) | |
download | libvirt-a3931b4996e46db409ad031e0230a507fb303287.tar.gz |
util: 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>
Diffstat (limited to 'src/util/vircgroupv1.c')
-rw-r--r-- | src/util/vircgroupv1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/vircgroupv1.c b/src/util/vircgroupv1.c index d23045331e..6ab79a1897 100644 --- a/src/util/vircgroupv1.c +++ b/src/util/vircgroupv1.c @@ -264,7 +264,7 @@ virCgroupV1ResolveMountLink(const char *mntDir, VIR_WARN("Expecting a symlink at %s for controller %s", linkSrc, typeStr); } else { - VIR_STEAL_PTR(controller->linkPoint, linkSrc); + controller->linkPoint = g_steal_pointer(&linkSrc); } } @@ -412,7 +412,7 @@ virCgroupV1StealPlacement(virCgroupPtr group) { char *ret = NULL; - VIR_STEAL_PTR(ret, group->legacy[VIR_CGROUP_CONTROLLER_SYSTEMD].placement); + ret = g_steal_pointer(&group->legacy[VIR_CGROUP_CONTROLLER_SYSTEMD].placement); return ret; } |