summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-diff.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-07-07 12:27:44 -0400
committerColin Walters <walters@verbum.org>2013-07-07 12:27:44 -0400
commit4b170d656c1b676929f5744448bafc250f3ad5dc (patch)
treeec19498a18bd7e817d15f940bf434cb17f711761 /src/ostree/ot-builtin-diff.c
parentbb6eedfb258d3001f61c42c7e920c03dae2bdc1a (diff)
downloadostree-4b170d656c1b676929f5744448bafc250f3ad5dc.tar.gz
Switch to libgsystem local allocation macros
And drop our compatibility wrapper.
Diffstat (limited to 'src/ostree/ot-builtin-diff.c')
-rw-r--r--src/ostree/ot-builtin-diff.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ostree/ot-builtin-diff.c b/src/ostree/ot-builtin-diff.c
index daa544ed..9c091d72 100644
--- a/src/ostree/ot-builtin-diff.c
+++ b/src/ostree/ot-builtin-diff.c
@@ -39,7 +39,7 @@ parse_file_or_commit (OstreeRepo *repo,
GError **error)
{
gboolean ret = FALSE;
- ot_lfree GFile *ret_file = NULL;
+ gs_free GFile *ret_file = NULL;
if (g_str_has_prefix (arg, "/")
|| g_str_has_prefix (arg, "./")
@@ -67,14 +67,14 @@ ostree_builtin_diff (int argc, char **argv, GFile *repo_path, GError **error)
GCancellable *cancellable = NULL;
const char *src;
const char *target;
- ot_lobj OstreeRepo *repo = NULL;
- ot_lfree char *src_prev = NULL;
- ot_lobj GFile *srcf = NULL;
- ot_lobj GFile *targetf = NULL;
- ot_lobj GFile *cwd = NULL;
- ot_lptrarray GPtrArray *modified = NULL;
- ot_lptrarray GPtrArray *removed = NULL;
- ot_lptrarray GPtrArray *added = NULL;
+ gs_unref_object OstreeRepo *repo = NULL;
+ gs_free char *src_prev = NULL;
+ gs_unref_object GFile *srcf = NULL;
+ gs_unref_object GFile *targetf = NULL;
+ gs_unref_object GFile *cwd = NULL;
+ gs_unref_ptrarray GPtrArray *modified = NULL;
+ gs_unref_ptrarray GPtrArray *removed = NULL;
+ gs_unref_ptrarray GPtrArray *added = NULL;
context = g_option_context_new ("REV TARGETDIR - Compare directory TARGETDIR against revision REV");
g_option_context_add_main_entries (context, options, NULL);