Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
diff.c: make constant string arguments const
author
John Keeping
<john@keeping.me.uk>
Thu, 7 Feb 2013 20:15:25 +0000
(20:15 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 12 Feb 2013 19:42:07 +0000
(11:42 -0800)
Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
3bf25c2
)
diff --git
a/diff.c
b/diff.c
index 951313467097e7283adcfd428bec78dc09b66b40..e00fc9053892f0923fc9c6ae7f9ac47968c0a8be 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-2123,7
+2123,8
@@
static unsigned char *deflate_it(char *data,
return deflated;
}
return deflated;
}
-static void emit_binary_diff_body(FILE *file, mmfile_t *one, mmfile_t *two, char *prefix)
+static void emit_binary_diff_body(FILE *file, mmfile_t *one, mmfile_t *two,
+ const char *prefix)
{
void *cp;
void *delta;
{
void *cp;
void *delta;
@@
-2184,7
+2185,8
@@
static void emit_binary_diff_body(FILE *file, mmfile_t *one, mmfile_t *two, char
free(data);
}
free(data);
}
-static void emit_binary_diff(FILE *file, mmfile_t *one, mmfile_t *two, char *prefix)
+static void emit_binary_diff(FILE *file, mmfile_t *one, mmfile_t *two,
+ const char *prefix)
{
fprintf(file, "%sGIT binary patch\n", prefix);
emit_binary_diff_body(file, one, two, prefix);
{
fprintf(file, "%sGIT binary patch\n", prefix);
emit_binary_diff_body(file, one, two, prefix);