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>
This commit is contained in:
parent
33f379eee6
commit
90e07f0a34
2
hash.h
2
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. */
|
/* Like oidcpy() but zero-pads the unused bytes in dst's hash array. */
|
||||||
static inline void oidcpy_with_padding(struct object_id *dst,
|
static inline void oidcpy_with_padding(struct object_id *dst,
|
||||||
struct object_id *src)
|
const struct object_id *src)
|
||||||
{
|
{
|
||||||
size_t hashsz;
|
size_t hashsz;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user