From 8d5b8dd740452111dd9bd8e83545a21d1cf0916a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 29 Jul 2013 18:44:41 -0400 Subject: admin: Clean up builtin prototype Pass through GCancellable, and just use GFile *sysroot, since that's all OtAdminBuiltinOpts was. --- src/ostree/ot-admin-builtin-cleanup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ostree/ot-admin-builtin-cleanup.c') diff --git a/src/ostree/ot-admin-builtin-cleanup.c b/src/ostree/ot-admin-builtin-cleanup.c index b8e8f302..8b08ed28 100644 --- a/src/ostree/ot-admin-builtin-cleanup.c +++ b/src/ostree/ot-admin-builtin-cleanup.c @@ -34,11 +34,10 @@ static GOptionEntry options[] = { }; gboolean -ot_admin_builtin_cleanup (int argc, char **argv, OtAdminBuiltinOpts *admin_opts, GError **error) +ot_admin_builtin_cleanup (int argc, char **argv, GFile *sysroot, GCancellable *cancellable, GError **error) { GOptionContext *context; gboolean ret = FALSE; - __attribute__((unused)) GCancellable *cancellable = NULL; context = g_option_context_new ("Delete untagged deployments and repository objects"); @@ -47,7 +46,7 @@ ot_admin_builtin_cleanup (int argc, char **argv, OtAdminBuiltinOpts *admin_opts, if (!g_option_context_parse (context, &argc, &argv, error)) goto out; - if (!ot_admin_cleanup (admin_opts->sysroot, cancellable, error)) + if (!ot_admin_cleanup (sysroot, cancellable, error)) goto out; ret = TRUE; -- cgit v1.2.1