Skip to content

Commit

Permalink
Sparse fix for builtin-diff
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Hagervall authored and Junio C Hamano committed May 7, 2006
1 parent be65e7d commit d92f1dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builtin-diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ static void stuff_change(struct diff_options *opt,

if (opt->reverse_diff) {
unsigned tmp;
const
const unsigned char *tmp_u;
const unsigned char *tmp_u;
const char *tmp_c;
tmp = old_mode; old_mode = new_mode; new_mode = tmp;
tmp_u = old_sha1; old_sha1 = new_sha1; new_sha1 = tmp_u;
Expand Down

0 comments on commit d92f1dc

Please sign in to comment.