summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--shared.c3
-rw-r--r--ui-tree.c2
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
@@ -307,9 +307,10 @@ static int load_mmfile(mmfile_t *file, const unsigned char *sha1)
307 if (is_null_sha1(sha1)) { 307 if (is_null_sha1(sha1)) {
308 file->ptr = (char *)""; 308 file->ptr = (char *)"";
309 file->size = 0; 309 file->size = 0;
310 } else { 310 } else {
311 file->ptr = read_sha1_file(sha1, &type, &file->size); 311 file->ptr = read_sha1_file(sha1, &type,
312 (unsigned long *)&file->size);
312 } 313 }
313 return 1; 314 return 1;
314} 315}
315 316
diff --git a/ui-tree.c b/ui-tree.c
index 15d1f5a..d6bcec3 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -14,9 +14,9 @@ int header = 0;
14 14
15static void print_object(const unsigned char *sha1, char *path) 15static void print_object(const unsigned char *sha1, char *path)
16{ 16{
17 enum object_type type; 17 enum object_type type;
18 unsigned char *buf; 18 char *buf;
19 unsigned long size, lineno, start, idx; 19 unsigned long size, lineno, start, idx;
20 const char *linefmt = "<tr><td class='no'><a name='%1$d'>%1$d</a></td><td class='txt'>"; 20 const char *linefmt = "<tr><td class='no'><a name='%1$d'>%1$d</a></td><td class='txt'>";
21 21
22 type = sha1_object_info(sha1, &size); 22 type = sha1_object_info(sha1, &size);