From: Eric Wong Date: Wed, 7 Jul 2021 23:10:18 +0000 (+0000) Subject: oidcpy_with_padding: constify `src' arg X-Git-Tag: v2.33.0-rc0~25^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90e07f0a342df836a33b92e179eb105243dba88d;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/hash.h b/hash.h index 9c6df4d952..27a180248f 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;