]> gitweb.ps.run Git - ps-cgit/commitdiff
Remove a few compiler warnings
authorLars Hjemli <hjemli@gmail.com>
Wed, 19 Sep 2007 22:21:47 +0000 (00:21 +0200)
committerLars Hjemli <hjemli@gmail.com>
Wed, 19 Sep 2007 22:21:47 +0000 (00:21 +0200)
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
shared.c
ui-tree.c

index 1cd60a2d6b00b97f292b6ee306256358287f95ab..343a4f93f2698ed5df50276a2eb72a40e68c9597 100644 (file)
--- 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;
 }
index 15d1f5a923c87f9b30bc284ca2c8250a208e1563..d6bcec3cfefd21e16e7d4e37737c13ec0949915f 100644 (file)
--- 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'>";