author | Lars Hjemli <hjemli@gmail.com> | 2007-09-19 22:21:47 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-09-19 22:21:47 (UTC) |
commit | 0835ffefb8a1f5387463b22e2e5f7e34d387d7b1 (patch) (side-by-side diff) | |
tree | b05423687e97b885f8a6b2617bb6018fbb9d3407 | |
parent | 6df9c7028a489578bc8593e56298cd869fcdc1fc (diff) | |
download | cgit-0835ffefb8a1f5387463b22e2e5f7e34d387d7b1.zip cgit-0835ffefb8a1f5387463b22e2e5f7e34d387d7b1.tar.gz cgit-0835ffefb8a1f5387463b22e2e5f7e34d387d7b1.tar.bz2 |
Remove a few compiler warnings
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | shared.c | 3 | ||||
-rw-r--r-- | ui-tree.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -310,3 +310,4 @@ static int load_mmfile(mmfile_t *file, const unsigned char *sha1) } else { - file->ptr = read_sha1_file(sha1, &type, &file->size); + file->ptr = read_sha1_file(sha1, &type, + (unsigned long *)&file->size); } @@ -17,3 +17,3 @@ static void print_object(const unsigned char *sha1, char *path) enum object_type type; - unsigned char *buf; + char *buf; unsigned long size, lineno, start, idx; |