From 0835ffefb8a1f5387463b22e2e5f7e34d387d7b1 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Thu, 20 Sep 2007 00:21:47 +0200 Subject: Remove a few compiler warnings Signed-off-by: Lars Hjemli --- shared.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared.c') diff --git a/shared.c b/shared.c index 1cd60a2..343a4f9 100644 --- a/shared.c +++ b/shared.c @@ -308,7 +308,8 @@ static int load_mmfile(mmfile_t *file, const unsigned char *sha1) file->ptr = (char *)""; file->size = 0; } else { - file->ptr = read_sha1_file(sha1, &type, &file->size); + file->ptr = read_sha1_file(sha1, &type, + (unsigned long *)&file->size); } return 1; } -- cgit 1.4.1