diff options
Diffstat (limited to 'src/ostree/ot-builtin-trivial-httpd.c')
-rw-r--r-- | src/ostree/ot-builtin-trivial-httpd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ostree/ot-builtin-trivial-httpd.c b/src/ostree/ot-builtin-trivial-httpd.c index 71c286b3..b5e84007 100644 --- a/src/ostree/ot-builtin-trivial-httpd.c +++ b/src/ostree/ot-builtin-trivial-httpd.c @@ -19,21 +19,22 @@ #include "config.h" -#include "ot-main.h" -#include "ot-builtins.h" #include "ostree.h" +#include "ot-builtins.h" +#include "ot-main.h" #include "otutil.h" gboolean -ostree_builtin_trivial_httpd (int argc, char **argv, OstreeCommandInvocation *invocation, GCancellable *cancellable, GError **error) +ostree_builtin_trivial_httpd (int argc, char **argv, OstreeCommandInvocation *invocation, + GCancellable *cancellable, GError **error) { - g_autoptr(GPtrArray) new_argv = g_ptr_array_new (); + g_autoptr (GPtrArray) new_argv = g_ptr_array_new (); g_ptr_array_add (new_argv, PKGLIBEXECDIR "/ostree-trivial-httpd"); for (int i = 1; i < argc; i++) g_ptr_array_add (new_argv, argv[i]); g_ptr_array_add (new_argv, NULL); - execvp (new_argv->pdata[0], (char**)new_argv->pdata); + execvp (new_argv->pdata[0], (char **)new_argv->pdata); /* Fall through on error */ glnx_set_error_from_errno (error); return FALSE; |