diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-09-20 00:21:47 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-09-20 00:21:47 +0200 |
commit | 0835ffefb8a1f5387463b22e2e5f7e34d387d7b1 (patch) | |
tree | b05423687e97b885f8a6b2617bb6018fbb9d3407 | |
parent | Add cgit.conf to .gitignore, remove *~ (diff) | |
download | cgit-pink-0835ffefb8a1f5387463b22e2e5f7e34d387d7b1.tar.gz cgit-pink-0835ffefb8a1f5387463b22e2e5f7e34d387d7b1.zip |
Remove a few compiler warnings
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | shared.c | 3 | ||||
-rw-r--r-- | ui-tree.c | 2 |
2 files changed, 3 insertions, 2 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; } diff --git a/ui-tree.c b/ui-tree.c index 15d1f5a..d6bcec3 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -15,7 +15,7 @@ int header = 0; 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; const char *linefmt = "<tr><td class='no'><a name='%1$d'>%1$d</a></td><td class='txt'>"; |