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>
Shawn O. Pearce committed
Dec 23, 2006 at 02:33 UTC
2dc3a234094afc61c367be3e6018722cd9d92ea9
1 file changed
+2
-2
cache.h
+2
-2
@@ -347,10 +347,10 @@ struct pack_window {
347
348
extern struct packed_git {
349
struct packed_git *next;
350
- unsigned long index_size;
351
- unsigned long pack_size;
350
struct pack_window *windows;
351
unsigned int *index_base;
352
+ off_t index_size;
353
+ off_t pack_size;
354
int pack_local;
355
unsigned char sha1[20];
356
/* something like ".git/objects/pack/xxxxx.pack" */