Diffstat (limited to 'ui-diff.c')
| -rw-r--r-- | ui-diff.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -7,6 +7,7 @@ */ #include "cgit.h" +#include "xdiff.h" char *diff_buffer; int diff_buffer_size; @@ -81,13 +82,13 @@ int diff_cb(void *priv_, mmbuffer_t *mb, int nbuf) static int load_mmfile(mmfile_t *file, const unsigned char *sha1) { - enum object_type type; + char type[20]; 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, &file->size); } return 1; } |