summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-pull-local.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2015-05-05 11:43:31 -0400
committerMatthew Barnes <mbarnes@redhat.com>2015-05-06 22:07:10 -0400
commit196d983af930c665bbb385f59f6480b1032fd6bb (patch)
tree9c0472087c6df8a007668ea6afafaedcd2d06d40 /src/ostree/ot-builtin-pull-local.c
parente6556dd223a994d202b3486ce03930eaab4a29b8 (diff)
downloadostree-196d983af930c665bbb385f59f6480b1032fd6bb.tar.gz
Use g_autoptr(GHashTable) instead of gs_unref_hashtable
Diffstat (limited to 'src/ostree/ot-builtin-pull-local.c')
-rw-r--r--src/ostree/ot-builtin-pull-local.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ostree/ot-builtin-pull-local.c b/src/ostree/ot-builtin-pull-local.c
index 993c53ec..ec0c0042 100644
--- a/src/ostree/ot-builtin-pull-local.c
+++ b/src/ostree/ot-builtin-pull-local.c
@@ -51,7 +51,7 @@ ostree_builtin_pull_local (int argc, char **argv, GCancellable *cancellable, GEr
g_autofree char *src_repo_uri = NULL;
glnx_unref_object OstreeAsyncProgress *progress = NULL;
gs_unref_ptrarray GPtrArray *refs_to_fetch = NULL;
- gs_unref_hashtable GHashTable *source_objects = NULL;
+ g_autoptr(GHashTable) source_objects = NULL;
context = g_option_context_new ("SRC_REPO [REFS...] - Copy data from SRC_REPO");
@@ -88,7 +88,7 @@ ostree_builtin_pull_local (int argc, char **argv, GCancellable *cancellable, GEr
{
g_autoptr(GFile) src_repo_path = g_file_new_for_path (src_repo_arg);
glnx_unref_object OstreeRepo *src_repo = ostree_repo_new (src_repo_path);
- gs_unref_hashtable GHashTable *refs_to_clone = NULL;
+ g_autoptr(GHashTable) refs_to_clone = NULL;
refs_to_fetch = g_ptr_array_new_with_free_func (g_free);