From: Shawn O. Pearce Date: Sat, 23 Dec 2006 07:33:47 +0000 (-0500) Subject: Use off_t for index and pack file lengths. X-Git-Tag: v1.5.0-rc1~64^2~24 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2dc3a234094afc61c367be3e6018722cd9d92ea9;p=git.git Use off_t for index and pack file lengths. Since the index_size and pack_size members of struct packed_git are the lengths of those corresponding files we should use the off_t size of the operating system to store these file lengths, rather than an unsigned long. This would help in the future should we ever resurrect Junio's 64 bit index implementation. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/cache.h b/cache.h index ae7bceca5..cc872440e 100644 --- a/cache.h +++ b/cache.h @@ -347,10 +347,10 @@ struct pack_window { extern struct packed_git { struct packed_git *next; - unsigned long index_size; - unsigned long pack_size; struct pack_window *windows; unsigned int *index_base; + off_t index_size; + off_t pack_size; int pack_local; unsigned char sha1[20]; /* something like ".git/objects/pack/xxxxx.pack" */