summaryrefslogtreecommitdiff
path: root/builtin/diff.c
diff options
context:
space:
mode:
authorShahzad Lone <shahzadlone@gmail.com>2019-02-02 23:16:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-02-04 17:57:10 (GMT)
commit33de80b1d50773f79e380eff33b4fc5c8ae1dd25 (patch)
tree8f0e4f65315b789213e1d806fb4dbdae81e87804 /builtin/diff.c
parentb5101f929789889c2e536d915698f58d5c5c6b7a (diff)
downloadgit-33de80b1d50773f79e380eff33b4fc5c8ae1dd25.zip
git-33de80b1d50773f79e380eff33b4fc5c8ae1dd25.tar.gz
git-33de80b1d50773f79e380eff33b4fc5c8ae1dd25.tar.bz2
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 f0393bb..84a362f 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);