environment.c: fix constness for odb_pack_keep()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
125f81461d
commit
8640d49682
@ -237,7 +237,7 @@ int odb_mkstemp(char *template, size_t limit, const char *pattern)
|
|||||||
return xmkstemp_mode(template, mode);
|
return xmkstemp_mode(template, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
int odb_pack_keep(char *name, size_t namesz, unsigned char *sha1)
|
int odb_pack_keep(char *name, size_t namesz, const unsigned char *sha1)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
@ -533,7 +533,7 @@ extern FILE *xfdopen(int fd, const char *mode);
|
|||||||
extern int xmkstemp(char *template);
|
extern int xmkstemp(char *template);
|
||||||
extern int xmkstemp_mode(char *template, int mode);
|
extern int xmkstemp_mode(char *template, int mode);
|
||||||
extern int odb_mkstemp(char *template, size_t limit, const char *pattern);
|
extern int odb_mkstemp(char *template, size_t limit, const char *pattern);
|
||||||
extern int odb_pack_keep(char *name, size_t namesz, unsigned char *sha1);
|
extern int odb_pack_keep(char *name, size_t namesz, const unsigned char *sha1);
|
||||||
|
|
||||||
static inline size_t xsize_t(off_t len)
|
static inline size_t xsize_t(off_t len)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user