X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e..4b4a62d507adc61e20e75e2748301ef307a6c95f:/ui-snapshot.c diff --git a/ui-snapshot.c b/ui-snapshot.c index 281899d..9be5dbe 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c @@ -8,12 +8,14 @@ */ #include "cgit.h" +#include "ui-snapshot.h" #include "html.h" #include "ui-shared.h" 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 +154,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);