X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=pack-bitmap.h;h=466c5afa09c37c4e5a56a33604510659b209e86b;hb=22dd22dce050f042b3eec165440966186691db42;hp=00de3ec8e41d88b972ea28387930ad4342a2defe;hpb=f06fb376edd87a6c6d3d0fb8cd412d879646fbab;p=thirdparty%2Fgit.git diff --git a/pack-bitmap.h b/pack-bitmap.h index 00de3ec8e4..466c5afa09 100644 --- a/pack-bitmap.h +++ b/pack-bitmap.h @@ -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 {