X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=diff.c;h=7d06b035ae8b6a53f10a7f94251a24d911baa509;hb=a1c7a69047e88244ed321b5aa2a8bcbba5a869c2;hp=9bded28729d6608f0449c483707f35279c24b1d5;hpb=946f5f7c245a0f9398417be5946795cfebfd1c62;p=git.git diff --git a/diff.c b/diff.c index 9bded287..7d06b035 100644 --- a/diff.c +++ b/diff.c @@ -10,7 +10,6 @@ #include "diffcore.h" static const char *diff_opts = "-pu"; -static unsigned char null_sha1[20] = { 0, }; static int use_size_cache; @@ -414,7 +413,7 @@ void diff_free_filespec_data(struct diff_filespec *s) static void prep_temp_blob(struct diff_tempfile *temp, void *blob, unsigned long size, - unsigned char *sha1, + const unsigned char *sha1, int mode) { int fd;