diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-03-16 14:35:00 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-03-31 19:31:43 +0200 |
commit | 8640d496823b0aa1d35523b98d8b3f21b54004cd (patch) | |
tree | 5cfda993d188cbb4a9818acdb79af2e7930fd304 /git-compat-util.h | |
parent | gc --aggressive: make --depth configurable (diff) | |
download | git-8640d496823b0aa1d35523b98d8b3f21b54004cd.tar.xz git-8640d496823b0aa1d35523b98d8b3f21b54004cd.zip |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 585ef8a79b..adbfb5e42f 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) { |