Skip to content

Commit

Permalink
(encode_85, decode_85): Mark source buffer pointer as "const".
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Meyering <jim@meyering.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
meyering authored and Junio C Hamano committed Apr 11, 2007
1 parent 8bd26c4 commit f981577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions base85.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f981577

Please sign in to comment.