diff options
author | John Keeping <john@keeping.me.uk> | 2013-02-07 20:15:25 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-12 11:42:07 -0800 |
commit | 32b367e4441f8566f200459149d1aaee8fafc867 (patch) | |
tree | facc5d0901d4998c3ab81860c0c86189db2709d4 /diff.c | |
parent | 3bf25c23cd68dd9e99e54bf5443aebbb4a40b7d6 (diff) | |
download | git-32b367e4441f8566f200459149d1aaee8fafc867.tar.gz |
diff.c: make constant string arguments const
Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |