Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Sparse fix for builtin-diff
author
Peter Hagervall
<hager@cs.umu.se>
Sun, 7 May 2006 14:50:47 +0000
(16:50 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 7 May 2006 22:36:10 +0000
(15:36 -0700)
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>
builtin-diff.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
be65e7d
)
diff --git
a/builtin-diff.c
b/builtin-diff.c
index 636edbf2a79f4e757866a08b221374e91e3dfe3b..d3ac581f291dae630478248133344e2dd6a80b06 100644
(file)
--- a/
builtin-diff.c
+++ b/
builtin-diff.c
@@
-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;