Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2007-09-20 02:21:47 +0400
committerLars Hjemli <hjemli@gmail.com>2007-09-20 02:21:47 +0400
commit0835ffefb8a1f5387463b22e2e5f7e34d387d7b1 (patch)
treeb05423687e97b885f8a6b2617bb6018fbb9d3407 /shared.c
parent6df9c7028a489578bc8593e56298cd869fcdc1fc (diff)
Remove a few compiler warnings
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c3
1 files changed, 2 insertions, 1 deletions
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;
}