summaryrefslogtreecommitdiff
path: root/src/ostree/ot-admin-builtin-cleanup.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-07-29 18:44:41 -0400
committerColin Walters <walters@verbum.org>2013-07-29 18:44:41 -0400
commit8d5b8dd740452111dd9bd8e83545a21d1cf0916a (patch)
tree68bfe4830d0ba936adf2d8b4a1d2f30c52dc5be6 /src/ostree/ot-admin-builtin-cleanup.c
parent760b8661042f31a856fa768a52f8675d3e345855 (diff)
downloadostree-8d5b8dd740452111dd9bd8e83545a21d1cf0916a.tar.gz
admin: Clean up builtin prototype
Pass through GCancellable, and just use GFile *sysroot, since that's all OtAdminBuiltinOpts was.
Diffstat (limited to 'src/ostree/ot-admin-builtin-cleanup.c')
-rw-r--r--src/ostree/ot-admin-builtin-cleanup.c5
1 files changed, 2 insertions, 3 deletions
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;