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>
Derrick Stolee committed
Jul 19, 2022 at 15:26 UTC
5766524956714d51b131d826a2894c85949e5770
2 files changed
+2
-2
pack-bitmap-write.c
+1
-1
@@ -683,7 +683,7 @@ static void write_hash_cache(struct hashfile *f,
683
}
684
}
685
686
-void bitmap_writer_set_checksum(unsigned char *sha1)
686
+void bitmap_writer_set_checksum(const unsigned char *sha1)
687
{
688
hashcpy(writer.pack_checksum, sha1);
689
}
pack-bitmap.h
+1
-1
@@ -75,7 +75,7 @@ int bitmap_has_oid_in_uninteresting(struct bitmap_index *, const struct object_i
75
off_t get_disk_usage_from_bitmap(struct bitmap_index *, struct rev_info *);
76
77
void bitmap_writer_show_progress(int show);
78
-void bitmap_writer_set_checksum(unsigned char *sha1);
78
+void bitmap_writer_set_checksum(const unsigned char *sha1);
79
void bitmap_writer_build_type_index(struct packing_data *to_pack,
80
struct pack_idx_entry **index,
81
uint32_t index_nr);