]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-shared.c
snapshot: strip bit from struct cgit_snapshot_format
[cgit.git] / ui-shared.c
index 8a786e0a3e27e63d1e6f19c28b85e0fc1c326673..e8c0723c75fc84958c230b1eee3824382ca69f66 100644 (file)
@@ -1127,7 +1127,7 @@ void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref,
 
        prefixlen = filename.len;
        for (f = cgit_snapshot_formats; f->suffix; f++) {
-               if (!(repo->snapshots & f->bit))
+               if (!(repo->snapshots & cgit_snapshot_format_bit(f)))
                        continue;
                strbuf_setlen(&filename, prefixlen);
                strbuf_addstr(&filename, f->suffix);