From f5b913c9cb52cee019585375546817cfe5c75426 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 25 Apr 2005 12:04:55 -0700 Subject: Fix up the types in write_sha1_file Use "unsigned long" for the size, like we do everywhere else. --- cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 226788a5b..4ef80c392 100644 --- a/cache.h +++ b/cache.h @@ -121,7 +121,7 @@ extern int write_sha1_buffer(const unsigned char *sha1, void *buf, unsigned int extern void * map_sha1_file(const unsigned char *sha1, unsigned long *size); extern void * unpack_sha1_file(void *map, unsigned long mapsize, char *type, unsigned long *size); extern void * read_sha1_file(const unsigned char *sha1, char *type, unsigned long *size); -extern int write_sha1_file(char *buf, unsigned len, const char *type, unsigned char *return_sha1); +extern int write_sha1_file(char *buf, unsigned long len, const char *type, unsigned char *return_sha1); extern int check_sha1_signature(unsigned char *sha1, void *buf, unsigned long size, const char *type); -- cgit v1.2.1