summaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-07-07 23:10:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-08 04:28:02 (GMT)
commit90e07f0a342df836a33b92e179eb105243dba88d (patch)
treeed877c826b23510b8df350bd5eb6e96ea2a2dcc3 /hash.h
parent33f379eee63a0529f85079857598ac6325d3aec5 (diff)
downloadgit-90e07f0a342df836a33b92e179eb105243dba88d.zip
git-90e07f0a342df836a33b92e179eb105243dba88d.tar.gz
git-90e07f0a342df836a33b92e179eb105243dba88d.tar.bz2
oidcpy_with_padding: constify `src' arg
As with `oidcpy', the source struct will not be modified and this will allow an upcoming const-correct caller to use it. Signed-off-by: Eric Wong <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hash.h')
-rw-r--r--hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.h b/hash.h
index 9c6df4d..27a1802 100644
--- a/hash.h
+++ b/hash.h
@@ -265,7 +265,7 @@ static inline void oidcpy(struct object_id *dst, const struct object_id *src)
/* Like oidcpy() but zero-pads the unused bytes in dst's hash array. */
static inline void oidcpy_with_padding(struct object_id *dst,
- struct object_id *src)
+ const struct object_id *src)
{
size_t hashsz;