From: Jim Meyering Date: Mon, 9 Apr 2007 22:56:33 +0000 (+0200) Subject: (encode_85, decode_85): Mark source buffer pointer as "const". X-Git-Tag: v1.5.1.1~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f98157720239f0dd94d03632dc873e3eb3135e2f;p=git.git (encode_85, decode_85): Mark source buffer pointer as "const". Signed-off-by: Jim Meyering Signed-off-by: Junio C Hamano --- diff --git a/base85.c b/base85.c index a9e97f89d..a6c41d597 100644 --- a/base85.c +++ b/base85.c @@ -37,7 +37,7 @@ static void prep_base85(void) } } -int decode_85(char *dst, char *buffer, int len) +int decode_85(char *dst, const char *buffer, int len) { prep_base85(); @@ -82,7 +82,7 @@ int decode_85(char *dst, char *buffer, int len) return 0; } -void encode_85(char *buf, unsigned char *data, int bytes) +void encode_85(char *buf, const unsigned char *data, int bytes) { prep_base85(); diff --git a/cache.h b/cache.h index 384b26022..1904131f2 100644 --- a/cache.h +++ b/cache.h @@ -468,8 +468,8 @@ extern int pager_in_use; extern int pager_use_color; /* base85 */ -int decode_85(char *dst, char *line, int linelen); -void encode_85(char *buf, unsigned char *data, int bytes); +int decode_85(char *dst, const char *line, int linelen); +void encode_85(char *buf, const unsigned char *data, int bytes); /* alloc.c */ struct blob;