]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-snapshot.c
ui-refs.c: Refactor print_tag()
[ps-cgit] / ui-snapshot.c
index 281899de0b01222d1e9453c3ca7385151334fec9..9be5dbef808526b3b0dd9d518163b206ead37b9f 100644 (file)
@@ -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);