Skip to content

Commit f981577

Browse files
meyeringJunio C Hamano
authored andcommitted
(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>
1 parent 8bd26c4 commit f981577

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

base85.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void prep_base85(void)
3737
}
3838
}
3939

40-
int decode_85(char *dst, char *buffer, int len)
40+
int decode_85(char *dst, const char *buffer, int len)
4141
{
4242
prep_base85();
4343

@@ -82,7 +82,7 @@ int decode_85(char *dst, char *buffer, int len)
8282
return 0;
8383
}
8484

85-
void encode_85(char *buf, unsigned char *data, int bytes)
85+
void encode_85(char *buf, const unsigned char *data, int bytes)
8686
{
8787
prep_base85();
8888

cache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ extern int pager_in_use;
468468
extern int pager_use_color;
469469

470470
/* base85 */
471-
int decode_85(char *dst, char *line, int linelen);
472-
void encode_85(char *buf, unsigned char *data, int bytes);
471+
int decode_85(char *dst, const char *line, int linelen);
472+
void encode_85(char *buf, const unsigned char *data, int bytes);
473473

474474
/* alloc.c */
475475
struct blob;

0 commit comments

Comments
 (0)