@matheusbsbs / matheus-bagliano / commits / f981577202
Fork 0

(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>

Jim Meyering committed Apr 10, 2007 at 00:56 UTC f98157720239f0dd94d03632dc873e3eb3135e2f
2 files changed +4 -4
base85.c
+2 -2
@@ -37,7 +37,7 @@ static void prep_base85(void)
37 }
38 }
39
40 -int decode_85(char *dst, char *buffer, int len)
40 +int decode_85(char *dst, const char *buffer, int len)
41 {
42 prep_base85();
43
@@ -82,7 +82,7 @@ int decode_85(char *dst, char *buffer, int len)
82 return 0;
83 }
84
85 -void encode_85(char *buf, unsigned char *data, int bytes)
85 +void encode_85(char *buf, const unsigned char *data, int bytes)
86 {
87 prep_base85();
88
cache.h
+2 -2
@@ -468,8 +468,8 @@ extern int pager_in_use;
468 extern int pager_use_color;
469
470 /* 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);
473
474 /* alloc.c */
475 struct blob;