]> git.ipfire.org Git - thirdparty/git.git/blobdiff - pack-bitmap.h
Merge branch 'wb/fsmonitor-bitmap-fix'
[thirdparty/git.git] / pack-bitmap.h
index 00de3ec8e41d88b972ea28387930ad4342a2defe..466c5afa09c37c4e5a56a33604510659b209e86b 100644 (file)
@@ -9,16 +9,16 @@ struct commit;
 struct repository;
 struct rev_info;
 
+static const char BITMAP_IDX_SIGNATURE[] = {'B', 'I', 'T', 'M'};
+
 struct bitmap_disk_header {
-       char magic[4];
+       char magic[ARRAY_SIZE(BITMAP_IDX_SIGNATURE)];
        uint16_t version;
        uint16_t options;
        uint32_t entry_count;
        unsigned char checksum[GIT_MAX_RAWSZ];
 };
 
-static const char BITMAP_IDX_SIGNATURE[] = {'B', 'I', 'T', 'M'};
-
 #define NEEDS_BITMAP (1u<<22)
 
 enum pack_bitmap_opts {