]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
snapshot: strip bit from struct cgit_snapshot_format
[ps-cgit] / shared.c
index 0a11e68aae4981cf9f972a0913ac2522014fe41a..d59ae7ef9cf5f68046322178c8766eebb5f193e3 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -400,7 +400,7 @@ int cgit_parse_snapshots_mask(const char *str)
                for (f = cgit_snapshot_formats; f->suffix; f++) {
                        if (!strcmp(item->string, f->suffix) ||
                            !strcmp(item->string, f->suffix + 1)) {
-                               rv |= f->bit;
+                               rv |= cgit_snapshot_format_bit(f);
                                break;
                        }
                }