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>
This commit is contained in:
parent
3bf25c23cd
commit
32b367e444
6
diff.c
6
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);
|
||||
|
Loading…
Reference in New Issue
Block a user