summaryrefslogtreecommitdiff
path: root/src/ostree/ot-admin-builtin-deploy.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-10-24 10:10:09 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-10-25 01:48:56 +0000
commitd76840d0c1e6e23ab54cee7a5142671e2cc4fae2 (patch)
tree7f65571ac240aac1031176b050654ced6e6f08ee /src/ostree/ot-admin-builtin-deploy.c
parent63ce86d5977ebfbedd2cdfba1e4f6bd400a3a1b8 (diff)
downloadostree-d76840d0c1e6e23ab54cee7a5142671e2cc4fae2.tar.gz
tree-wide: Use autoptr for OstreeKernelArgs
Much nicer looking. Prep for more cleanup from https://github.com/projectatomic/rpm-ostree/pull/1013 Closes: #1302 Approved by: peterbaouoft
Diffstat (limited to 'src/ostree/ot-admin-builtin-deploy.c')
-rw-r--r--src/ostree/ot-admin-builtin-deploy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-admin-builtin-deploy.c b/src/ostree/ot-admin-builtin-deploy.c
index ae287939..83550331 100644
--- a/src/ostree/ot-admin-builtin-deploy.c
+++ b/src/ostree/ot-admin-builtin-deploy.c
@@ -62,7 +62,7 @@ static GOptionEntry options[] = {
gboolean
ot_admin_builtin_deploy (int argc, char **argv, OstreeCommandInvocation *invocation, GCancellable *cancellable, GError **error)
{
- __attribute__((cleanup(_ostree_kernel_args_cleanup))) OstreeKernelArgs *kargs = NULL;
+ g_autoptr(OstreeKernelArgs) kargs = NULL;
g_autoptr(GOptionContext) context =
g_option_context_new ("REFSPEC");