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>

Eric Wong committed Jul 7, 2021 at 23:10 UTC 90e07f0a342df836a33b92e179eb105243dba88d
1 file changed +1 -1
hash.h
+1 -1
@@ -265,7 +265,7 @@ static inline void oidcpy(struct object_id *dst, const struct object_id *src)
265
266 /* Like oidcpy() but zero-pads the unused bytes in dst's hash array. */
267 static inline void oidcpy_with_padding(struct object_id *dst,
268 - struct object_id *src)
268 + const struct object_id *src)
269 {
270 size_t hashsz;
271