diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-10-07 11:33:02 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-10-07 11:33:02 +0900 |
| commit | 9728ab488ad2fc5e17daba69cbc80ff514f70da8 (patch) | |
| tree | 7ff6a4b70f586b6abc02c1aba75f7a477b7ca4a2 /pack-bitmap.h | |
| parent | 1f314d522311f05e0519206a1ae9919df87e75a1 (diff) | |
| parent | 411e4f4735397a601f33be475918e4a96f66e3a2 (diff) | |
| download | git-9728ab488ad2fc5e17daba69cbc80ff514f70da8.tar.xz | |
Merge branch 'dl/honor-cflags-in-hdr-check'
Dev support.
* dl/honor-cflags-in-hdr-check:
ci: run `hdr-check` as part of the `Static Analysis` job
Makefile: emulate compile in $(HCO) target better
pack-bitmap.h: remove magic number
promisor-remote.h: include missing header
apply.h: include missing header
Diffstat (limited to 'pack-bitmap.h')
| -rw-r--r-- | pack-bitmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |
