t/t5515-fetch-merge-logic.sh: Added tests for the merge login in git-fetch
[gitweb.git] / builtin-log.c
index f43790cbce39fdc465d92ec83785191772dcf1cb..1c9f7d02a8746d1d33347b7baaa85e4153a61bbb 100644 (file)
@@ -89,8 +89,8 @@ int cmd_whatchanged(int argc, const char **argv, const char *prefix)
 static int show_object(const unsigned char *sha1, int suppress_header)
 {
        unsigned long size;
-       char type[20];
-       char *buf = read_sha1_file(sha1, type, &size);
+       enum object_type type;
+       char *buf = read_sha1_file(sha1, &type, &size);
        int offset = 0;
 
        if (!buf)