diff options
author | Thomas Gummerer <t.gummerer@gmail.com> | 2013-08-18 21:41:51 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-20 12:29:42 -0700 |
commit | 7800c1ebcc12a7b667a2c76de109a85d272051a0 (patch) | |
tree | b42f0f217dd3e19f760cb60bd817e997cc52efaa /cache.h | |
parent | 4d06473928ee574910accbde05c19ef2263abdf6 (diff) | |
download | git-7800c1ebcc12a7b667a2c76de109a85d272051a0.tar.gz git-7800c1ebcc12a7b667a2c76de109a85d272051a0.tar.xz |
read-cache: use fixed width integer types
Use the fixed width integer types uint16_t and uint32_t for on-disk
structures; unsigned short and unsigned int do not have a guaranteed
size.
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -101,9 +101,9 @@ unsigned long git_deflate_bound(git_zstream *, unsigned long); #define CACHE_SIGNATURE 0x44495243 /* "DIRC" */ struct cache_header { - unsigned int hdr_signature; - unsigned int hdr_version; - unsigned int hdr_entries; + uint32_t hdr_signature; + uint32_t hdr_version; + uint32_t hdr_entries; }; #define INDEX_FORMAT_LB 2 @@ -115,8 +115,8 @@ struct cache_header { * check it for equality in the 32 bits we save. */ struct cache_time { - unsigned int sec; - unsigned int nsec; + uint32_t sec; + uint32_t nsec; }; struct stat_data { |