Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 8640d49

Browse files
pcloudsgitster
authored andcommitted
environment.c: fix constness for odb_pack_keep()
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 125f814 commit 8640d49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

environment.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ int odb_mkstemp(char *template, size_t limit, const char *pattern)
237237
return xmkstemp_mode(template, mode);
238238
}
239239

240-
int odb_pack_keep(char *name, size_t namesz, unsigned char *sha1)
240+
int odb_pack_keep(char *name, size_t namesz, const unsigned char *sha1)
241241
{
242242
int fd;
243243

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ extern FILE *xfdopen(int fd, const char *mode);
533533
extern int xmkstemp(char *template);
534534
extern int xmkstemp_mode(char *template, int mode);
535535
extern int odb_mkstemp(char *template, size_t limit, const char *pattern);
536-
extern int odb_pack_keep(char *name, size_t namesz, unsigned char *sha1);
536+
extern int odb_pack_keep(char *name, size_t namesz, const unsigned char *sha1);
537537

538538
static inline size_t xsize_t(off_t len)
539539
{

0 commit comments

Comments
 (0)