Skip to content

Commit 90e07f0

Browse files
Eric Wonggitster
Eric Wong
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 33f379e commit 90e07f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hash.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static inline void oidcpy(struct object_id *dst, const struct object_id *src)
265265

266266
/* Like oidcpy() but zero-pads the unused bytes in dst's hash array. */
267267
static inline void oidcpy_with_padding(struct object_id *dst,
268-
struct object_id *src)
268+
const struct object_id *src)
269269
{
270270
size_t hashsz;
271271

0 commit comments

Comments
 (0)