summaryrefslogtreecommitdiff
path: root/pack-bitmap-write.c
diff options
context:
space:
mode:
authorDerrick Stolee <derrickstolee@github.com>2022-07-19 15:26:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-07-19 15:38:17 (GMT)
commit5766524956714d51b131d826a2894c85949e5770 (patch)
tree5273eaaf5598a4dbd3fc0d9782ec3f178c5d9100 /pack-bitmap-write.c
parentbbea4dcf42b28eb7ce64a6306cdde875ae5d09ca (diff)
downloadgit-5766524956714d51b131d826a2894c85949e5770.zip
git-5766524956714d51b131d826a2894c85949e5770.tar.gz
git-5766524956714d51b131d826a2894c85949e5770.tar.bz2
pack-bitmap-write: use const for hashes
The next change will use a const array when calling this method. There is no need for the non-const version, so let's do this cleanup quickly. Signed-off-by: Derrick Stolee <derrickstolee@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap-write.c')
-rw-r--r--pack-bitmap-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-bitmap-write.c b/pack-bitmap-write.c
index c43375b..4fcfaed 100644
--- a/pack-bitmap-write.c
+++ b/pack-bitmap-write.c
@@ -683,7 +683,7 @@ static void write_hash_cache(struct hashfile *f,
}
}
-void bitmap_writer_set_checksum(unsigned char *sha1)
+void bitmap_writer_set_checksum(const unsigned char *sha1)
{
hashcpy(writer.pack_checksum, sha1);
}