summaryrefslogtreecommitdiff
path: root/src/ostree/ot-main.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-07-31 12:16:59 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-08-03 13:48:12 +0000
commitb929b620aebbc241caa965472f4fe351223b7a35 (patch)
tree6afafb3254b155a4fa010a46d831830975307763 /src/ostree/ot-main.c
parentaa63d0e0c55fc419a0b86e5c02a0ac8b97757a0d (diff)
downloadostree-b929b620aebbc241caa965472f4fe351223b7a35.tar.gz
tree-wide: Use g_autoptr(Ostree*)
Part of cleaning up our usage of libglnx; we want to use what's in GLib where we can. Had to change a few .c files to `#include ostree.h` early on to pick up autoptrs for the core types. Closes: #1040 Approved by: jlebon
Diffstat (limited to 'src/ostree/ot-main.c')
-rw-r--r--src/ostree/ot-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-main.c b/src/ostree/ot-main.c
index ca4f1592..56d247b4 100644
--- a/src/ostree/ot-main.c
+++ b/src/ostree/ot-main.c
@@ -372,7 +372,7 @@ ostree_admin_option_context_parse (GOptionContext *context,
if (opt_sysroot != NULL)
sysroot_path = g_file_new_for_path (opt_sysroot);
- glnx_unref_object OstreeSysroot *sysroot = ostree_sysroot_new (sysroot_path);
+ g_autoptr(OstreeSysroot) sysroot = ostree_sysroot_new (sysroot_path);
if (flags & OSTREE_ADMIN_BUILTIN_FLAG_SUPERUSER)
{