X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e..bafab423f20bc1448b293842c235965e1681f07e:/ui-snapshot.c diff --git a/ui-snapshot.c b/ui-snapshot.c index 281899d..e199a92 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c @@ -14,6 +14,7 @@ static int write_archive_type(const char *format, const char *hex, const char *prefix) { struct argv_array argv = ARGV_ARRAY_INIT; + argv_array_push(&argv, "snapshot"); argv_array_push(&argv, format); if (prefix) { argv_array_push(&argv, "--prefix"); @@ -152,7 +153,7 @@ static const char *get_ref_from_filename(const char *url, const char *filename, return NULL; } -void show_error(char *msg) +static void show_error(char *msg) { ctx.page.mimetype = "text/html"; cgit_print_http_headers(&ctx);