summaryrefslogtreecommitdiff
path: root/builtin/diff.c
diff options
context:
space:
mode:
authorLibravatar Shahzad Lone <shahzadlone@gmail.com>2019-02-02 23:16:45 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-02-04 09:57:10 -0800
commit33de80b1d50773f79e380eff33b4fc5c8ae1dd25 (patch)
tree8f0e4f65315b789213e1d806fb4dbdae81e87804 /builtin/diff.c
parentFourth batch after 2.20 (diff)
downloadtgif-33de80b1d50773f79e380eff33b4fc5c8ae1dd25.tar.xz
various: tighten constness of some local variables
Signed-off-by: Shahzad Lone <shahzadlone@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/diff.c')
-rw-r--r--builtin/diff.c2
1 files changed, 1 insertions, 1 deletions
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);