cgit

commit 0835ffefb8a1f5387463b22e2e5f7e34d387d7b1

Author: Lars Hjemli <hjemli@gmail.com>

Remove a few compiler warnings

Signed-off-by: Lars Hjemli <hjemli@gmail.com>

 shared.c | 3 ++-
 ui-tree.c | 2 +-


diff --git a/shared.c b/shared.c
index 1cd60a2d6b00b97f292b6ee306256358287f95ab..343a4f93f2698ed5df50276a2eb72a40e68c9597 100644
--- a/shared.c
+++ b/shared.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;
 }




diff --git a/ui-tree.c b/ui-tree.c
index 15d1f5a923c87f9b30bc284ca2c8250a208e1563..d6bcec3cfefd21e16e7d4e37737c13ec0949915f 100644
--- a/ui-tree.c
+++ b/ui-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'>";