From 33de80b1d50773f79e380eff33b4fc5c8ae1dd25 Mon Sep 17 00:00:00 2001 From: Shahzad Lone Date: Sat, 2 Feb 2019 23:16:45 +0000 Subject: various: tighten constness of some local variables Signed-off-by: Shahzad Lone Signed-off-by: Junio C Hamano --- builtin/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/diff.c') diff --git a/builtin/diff.c b/builtin/diff.c index f0393bba23..84a362ff56 100644 --- a/builtin/diff.c +++ b/builtin/diff.c @@ -102,7 +102,7 @@ static int builtin_diff_blobs(struct rev_info *revs, int argc, const char **argv, struct object_array_entry **blob) { - unsigned mode = canon_mode(S_IFREG | 0644); + const unsigned mode = canon_mode(S_IFREG | 0644); if (argc > 1) usage(builtin_diff_usage); -- cgit v1.2.3