From c58ad36840da4a23dac49434b19ed4f77c22946f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 17 Mar 2016 11:22:25 -0400 Subject: libglnx porting: gs_transfer_out_value -> g_steal_pointer It's a bit more verbose but...eh. --- src/ostree/ot-main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ostree/ot-main.c') diff --git a/src/ostree/ot-main.c b/src/ostree/ot-main.c index 5b54af4c..51282f92 100644 --- a/src/ostree/ot-main.c +++ b/src/ostree/ot-main.c @@ -294,7 +294,8 @@ ostree_option_context_parse (GOptionContext *context, } } - gs_transfer_out_value (out_repo, &repo); + if (out_repo) + *out_repo = g_steal_pointer (&repo); success = TRUE; @@ -375,7 +376,8 @@ ostree_admin_option_context_parse (GOptionContext *context, goto out; } - gs_transfer_out_value (out_sysroot, &sysroot); + if (out_sysroot) + *out_sysroot = g_steal_pointer (&sysroot); success = TRUE; -- cgit v1.2.1