(encode_85, decode_85): Mark source buffer pointer as "const".
Signed-off-by: Jim Meyering <jim@meyering.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
8bd26c4a2f
commit
f981577202
4
base85.c
4
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();
|
prep_base85();
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ int decode_85(char *dst, char *buffer, int len)
|
|||||||
return 0;
|
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();
|
prep_base85();
|
||||||
|
|
||||||
|
4
cache.h
4
cache.h
@ -468,8 +468,8 @@ extern int pager_in_use;
|
|||||||
extern int pager_use_color;
|
extern int pager_use_color;
|
||||||
|
|
||||||
/* base85 */
|
/* base85 */
|
||||||
int decode_85(char *dst, char *line, int linelen);
|
int decode_85(char *dst, const char *line, int linelen);
|
||||||
void encode_85(char *buf, unsigned char *data, int bytes);
|
void encode_85(char *buf, const unsigned char *data, int bytes);
|
||||||
|
|
||||||
/* alloc.c */
|
/* alloc.c */
|
||||||
struct blob;
|
struct blob;
|
||||||
|
Reference in New Issue
Block a user