Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
(encode_85, decode_85): Mark source buffer pointer as "const".
author
Jim Meyering
<jim@meyering.net>
Mon, 9 Apr 2007 22:56:33 +0000
(
00:56
+0200)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 11 Apr 2007 07:51:20 +0000
(
00:51
-0700)
Signed-off-by: Jim Meyering <jim@meyering.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
base85.c
patch
|
blob
|
history
cache.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
8bd26c4
)
diff --git
a/base85.c
b/base85.c
index a9e97f89d9beb51ffd7c8f0be828b8c85358a1ef..a6c41d597ab8eccb5eb2ccf2b3b543398c360b44 100644
(file)
--- 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, c
onst c
har *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();
diff --git
a/cache.h
b/cache.h
index 384b260227dfb2fa30ecc175681b9b8d73a3577a..1904131f27c2b41609c505fb8f73143619c133fa 100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-468,8
+468,8
@@
extern int pager_in_use;
extern int pager_use_color;
/* base85 */
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, c
onst c
har *line, int linelen);
+void encode_85(char *buf,
const
unsigned char *data, int bytes);
/* alloc.c */
struct blob;
/* alloc.c */
struct blob;