summaryrefslogtreecommitdiff
path: root/builtin/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-02-07 06:05:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-02-07 06:05:28 (GMT)
commit3a14fdec88125c4fd093f938cf406231b932e3a2 (patch)
tree1b67f5143fdd6b3be964a2e57ac65c557d1fe566 /builtin/diff.c
parent257507a35e1d13d8849bbdf9324a060232a82bdf (diff)
parent33de80b1d50773f79e380eff33b4fc5c8ae1dd25 (diff)
downloadgit-3a14fdec88125c4fd093f938cf406231b932e3a2.zip
git-3a14fdec88125c4fd093f938cf406231b932e3a2.tar.gz
git-3a14fdec88125c4fd093f938cf406231b932e3a2.tar.bz2
Merge branch 'sl/const'
Code cleanup. * sl/const: various: tighten constness of some local variables
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 74351a5..9f61092 100644
--- a/builtin/diff.c
+++ b/builtin/diff.c
@@ -103,7 +103,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);