diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2006-12-23 02:33:47 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-29 11:36:44 -0800 |
commit | 2dc3a234094afc61c367be3e6018722cd9d92ea9 (patch) | |
tree | 1eba04b91af00f37fb60df9fb362d23a5cf57d78 /cache.h | |
parent | c41ee586dc95b757cdff4deae10a30a691ba758b (diff) | |
download | git-2dc3a234094afc61c367be3e6018722cd9d92ea9.tar.gz |
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 <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" */ |