From: John Keeping Date: Thu, 7 Feb 2013 20:15:25 +0000 (+0000) Subject: diff.c: make constant string arguments const X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32b367e4441f8566f200459149d1aaee8fafc867;p=git.git diff.c: make constant string arguments const Signed-off-by: John Keeping Signed-off-by: Junio C Hamano --- diff --git a/diff.c b/diff.c index 951313467..e00fc9053 100644 --- a/diff.c +++ b/diff.c @@ -2123,7 +2123,8 @@ static unsigned char *deflate_it(char *data, 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; @@ -2184,7 +2185,8 @@ static void emit_binary_diff_body(FILE *file, mmfile_t *one, mmfile_t *two, char 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);