Skip to content

Commit d92f1dc

Browse files
Peter HagervallJunio C Hamano
authored andcommitted
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>
1 parent be65e7d commit d92f1dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin-diff.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ static void stuff_change(struct diff_options *opt,
8484

8585
if (opt->reverse_diff) {
8686
unsigned tmp;
87-
const
88-
const unsigned char *tmp_u;
87+
const unsigned char *tmp_u;
8988
const char *tmp_c;
9089
tmp = old_mode; old_mode = new_mode; new_mode = tmp;
9190
tmp_u = old_sha1; old_sha1 = new_sha1; new_sha1 = tmp_u;

0 commit comments

Comments
 (0)