*/
#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");
return NULL;
}
-void show_error(char *msg)
+static void show_error(char *msg)
{
ctx.page.mimetype = "text/html";
cgit_print_http_headers(&ctx);