]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
snapshot: strip bit from struct cgit_snapshot_format
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index d2f7b9c7bbb4f30e0c2ee813c79b50466e1a5d3e..ca0a89c0a17d7b23bfb7facb2299ca537242ad9d 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -765,7 +765,7 @@ static char *build_snapshot_setting(int bitmap)
        struct strbuf result = STRBUF_INIT;
 
        for (f = cgit_snapshot_formats; f->suffix; f++) {
-               if (f->bit & bitmap) {
+               if (cgit_snapshot_format_bit(f) & bitmap) {
                        if (result.len)
                                strbuf_addch(&result, ' ');
                        strbuf_addstr(&result, f->suffix);