diff options
author | Colin Walters <walters@verbum.org> | 2017-07-31 12:16:59 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-08-03 13:48:12 +0000 |
commit | b929b620aebbc241caa965472f4fe351223b7a35 (patch) | |
tree | 6afafb3254b155a4fa010a46d831830975307763 /src/ostree/ot-builtin-show.c | |
parent | aa63d0e0c55fc419a0b86e5c02a0ac8b97757a0d (diff) | |
download | ostree-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-builtin-show.c')
-rw-r--r-- | src/ostree/ot-builtin-show.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ostree/ot-builtin-show.c b/src/ostree/ot-builtin-show.c index dcd9090c..0c57637b 100644 --- a/src/ostree/ot-builtin-show.c +++ b/src/ostree/ot-builtin-show.c @@ -147,7 +147,7 @@ print_object (OstreeRepo *repo, if (objtype == OSTREE_OBJECT_TYPE_COMMIT) { - glnx_unref_object OstreeGpgVerifyResult *result = NULL; + g_autoptr(OstreeGpgVerifyResult) result = NULL; g_autoptr(GError) local_error = NULL; g_autoptr(GFile) gpg_homedir = opt_gpg_homedir ? g_file_new_for_path (opt_gpg_homedir) : NULL; @@ -223,7 +223,7 @@ ostree_builtin_show (int argc, char **argv, GCancellable *cancellable, GError ** { g_autoptr(GOptionContext) context = g_option_context_new ("OBJECT - Output a metadata object"); - glnx_unref_object OstreeRepo *repo = NULL; + g_autoptr(OstreeRepo) repo = NULL; if (!ostree_option_context_parse (context, options, &argc, &argv, OSTREE_BUILTIN_FLAG_NONE, &repo, cancellable, error)) return FALSE; |