all repos — cgit @ 0835ffefb8a1f5387463b22e2e5f7e34d387d7b1

a hyperfast web frontend for git written in c

Remove a few compiler warnings

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 20 Sep 2007 00:21:47 +0200
commit

0835ffefb8a1f5387463b22e2e5f7e34d387d7b1

parent

6df9c7028a489578bc8593e56298cd869fcdc1fc

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M shared.cshared.c

@@ -308,7 +308,8 @@ if (is_null_sha1(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; }
M ui-tree.cui-tree.c

@@ -15,7 +15,7 @@

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'>";