summaryrefslogtreecommitdiff
path: root/src/ostree/ot-remote-builtin-delete-cookie.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ostree/ot-remote-builtin-delete-cookie.c')
-rw-r--r--src/ostree/ot-remote-builtin-delete-cookie.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ostree/ot-remote-builtin-delete-cookie.c b/src/ostree/ot-remote-builtin-delete-cookie.c
index 0c22caa2..f79854ea 100644
--- a/src/ostree/ot-remote-builtin-delete-cookie.c
+++ b/src/ostree/ot-remote-builtin-delete-cookie.c
@@ -23,9 +23,9 @@
#include "otutil.h"
#include <sys/stat.h>
+#include "ostree-repo-private.h"
#include "ot-main.h"
#include "ot-remote-builtins.h"
-#include "ostree-repo-private.h"
#include "ot-remote-cookie-util.h"
/* ATTENTION:
@@ -33,18 +33,17 @@
* man page (man/ostree-remote.xml) when changing the option list.
*/
-static GOptionEntry option_entries[] = {
- { NULL }
-};
+static GOptionEntry option_entries[] = { { NULL } };
gboolean
-ot_remote_builtin_delete_cookie (int argc, char **argv, OstreeCommandInvocation *invocation, GCancellable *cancellable, GError **error)
+ot_remote_builtin_delete_cookie (int argc, char **argv, OstreeCommandInvocation *invocation,
+ GCancellable *cancellable, GError **error)
{
- g_autoptr(OstreeRepo) repo = NULL;
- g_autoptr(GOptionContext) context = g_option_context_new ("NAME DOMAIN PATH COOKIE_NAME");
+ g_autoptr (OstreeRepo) repo = NULL;
+ g_autoptr (GOptionContext) context = g_option_context_new ("NAME DOMAIN PATH COOKIE_NAME");
- if (!ostree_option_context_parse (context, option_entries, &argc, &argv,
- invocation, &repo, cancellable, error))
+ if (!ostree_option_context_parse (context, option_entries, &argc, &argv, invocation, &repo,
+ cancellable, error))
return FALSE;
if (argc < 5)
@@ -58,7 +57,8 @@ ot_remote_builtin_delete_cookie (int argc, char **argv, OstreeCommandInvocation
const char *path = argv[3];
const char *cookie_name = argv[4];
g_autofree char *cookie_file = g_strdup_printf ("%s.cookies.txt", remote_name);
- if (!ot_delete_cookie_at (ostree_repo_get_dfd (repo), cookie_file, domain, path, cookie_name, error))
+ if (!ot_delete_cookie_at (ostree_repo_get_dfd (repo), cookie_file, domain, path, cookie_name,
+ error))
return FALSE;
return TRUE;