Convert "struct cache_entry *" to "const ..." wherever possible
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 208094f6b7d8b6e18459fc1cd57ac8554723d8d4..126abbf6d3da633c37115c0a5b1a81d0962bf820 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -2586,7 +2586,7 @@ void fill_filespec(struct diff_filespec *spec, const unsigned char *sha1,
  */
 static int reuse_worktree_file(const char *name, const unsigned char *sha1, int want_file)
 {
-       struct cache_entry *ce;
+       const struct cache_entry *ce;
        struct stat st;
        int pos, len;