diff options
author | Martin Koegler <martin.koegler@chello.at> | 2017-08-10 20:13:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-10 14:45:02 -0700 |
commit | c65861d8d17a4e1be0bb0f613c12f48b646837e4 (patch) | |
tree | e7c0218142154ecd29fc1d7c12a2dd5f8f26ae1a /cache.h | |
parent | 4274c698f46a9bc45834c4904e7e113450c042fb (diff) | |
download | git-mk/use-size-t-in-zlib.tar.gz |
zlib.c: use size_t for sizemk/use-size-t-in-zlib
Signed-off-by: Martin Koegler <martin.koegler@chello.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -42,10 +42,10 @@ #include <zlib.h> typedef struct git_zstream { z_stream z; - unsigned long avail_in; - unsigned long avail_out; - unsigned long total_in; - unsigned long total_out; + size_t avail_in; + size_t avail_out; + size_t total_in; + size_t total_out; unsigned char *next_in; unsigned char *next_out; } git_zstream; @@ -62,7 +62,7 @@ void git_deflate_end(git_zstream *); int git_deflate_abort(git_zstream *); int git_deflate_end_gently(git_zstream *); int git_deflate(git_zstream *, int flush); -unsigned long git_deflate_bound(git_zstream *, unsigned long); +size_t git_deflate_bound(git_zstream *, size_t); /* The length in bytes and in hex digits of an object name (SHA-1 value). */ #define GIT_SHA1_RAWSZ 20 @@ -1684,7 +1684,7 @@ extern int open_pack_index(struct packed_git *); */ extern void close_pack_index(struct packed_git *); -extern unsigned char *use_pack(struct packed_git *, struct pack_window **, off_t, unsigned long *); +extern unsigned char *use_pack(struct packed_git *, struct pack_window **, off_t, size_t *); extern void close_pack_windows(struct packed_git *); extern void close_all_packs(void); extern void unuse_pack(struct pack_window **); |