Sparse fix for builtin-diff
You gotta love sparse: builtin-diff.c:88:4: error: Just how const do you want this type to be? Signed-off-by: Peter Hagervall <hager@cs.umu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
be65e7d9fb
commit
d92f1dc63f
@ -84,8 +84,7 @@ static void stuff_change(struct diff_options *opt,
|
|||||||
|
|
||||||
if (opt->reverse_diff) {
|
if (opt->reverse_diff) {
|
||||||
unsigned tmp;
|
unsigned tmp;
|
||||||
const
|
const unsigned char *tmp_u;
|
||||||
const unsigned char *tmp_u;
|
|
||||||
const char *tmp_c;
|
const char *tmp_c;
|
||||||
tmp = old_mode; old_mode = new_mode; new_mode = tmp;
|
tmp = old_mode; old_mode = new_mode; new_mode = tmp;
|
||||||
tmp_u = old_sha1; old_sha1 = new_sha1; new_sha1 = tmp_u;
|
tmp_u = old_sha1; old_sha1 = new_sha1; new_sha1 = tmp_u;
|
||||||
|
Loading…
Reference in New Issue
Block a user