X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=diff.c;h=7d06b035ae8b6a53f10a7f94251a24d911baa509;hb=c7ff5f1d7d6f103802fd6d6b1d4dcdf095e95d5f;hp=9bded28729d6608f0449c483707f35279c24b1d5;hpb=c1067050ce58b5b39f528fe634732da858664603;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;