summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-03-16 13:35:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-03-31 17:31:43 (GMT)
commit8640d496823b0aa1d35523b98d8b3f21b54004cd (patch)
tree5cfda993d188cbb4a9818acdb79af2e7930fd304 /git-compat-util.h
parent125f81461db82e29d03fa788e4a897e6ab7d1ded (diff)
downloadgit-8640d496823b0aa1d35523b98d8b3f21b54004cd.zip
git-8640d496823b0aa1d35523b98d8b3f21b54004cd.tar.gz
git-8640d496823b0aa1d35523b98d8b3f21b54004cd.tar.bz2
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>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 585ef8a..adbfb5e 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -533,7 +533,7 @@ extern FILE *xfdopen(int fd, const char *mode);
extern int xmkstemp(char *template);
extern int xmkstemp_mode(char *template, int mode);
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)
{