diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-09-20 07:21:47 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-09-20 07:21:47 (JST) |
commit | 0835ffefb8a1f5387463b22e2e5f7e34d387d7b1 (patch) | |
tree | b05423687e97b885f8a6b2617bb6018fbb9d3407 /shared.c | |
parent | 6df9c7028a489578bc8593e56298cd869fcdc1fc (diff) | |
download | cgit-0835ffefb8a1f5387463b22e2e5f7e34d387d7b1.zip cgit-0835ffefb8a1f5387463b22e2e5f7e34d387d7b1.tar.gz |
Remove a few compiler warnings
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -308,7 +308,8 @@ static int load_mmfile(mmfile_t *file, const unsigned char *sha1) | |||
308 | file->ptr = (char *)""; | 308 | file->ptr = (char *)""; |
309 | file->size = 0; | 309 | file->size = 0; |
310 | } else { | 310 | } else { |
311 | file->ptr = read_sha1_file(sha1, &type, &file->size); | 311 | file->ptr = read_sha1_file(sha1, &type, |
312 | (unsigned long *)&file->size); | ||
312 | } | 313 | } |
313 | return 1; | 314 | return 1; |
314 | } | 315 | } |