diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-20 20:46:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-20 20:46:10 +0200 |
commit | e99d59ff0bff349ef205cef1076e0354c8130680 (patch) | |
tree | 530ca0d4db45176dad22016af0e2d61c2a321c70 /diff-cache.c | |
parent | [PATCH] Simplify "reverse-diff" logic in the diff core. (diff) | |
download | git-e99d59ff0bff349ef205cef1076e0354c8130680.tar.xz git-e99d59ff0bff349ef205cef1076e0354c8130680.zip |
sparse cleanup
Fix various things that sparse complains about:
- use NULL instead of 0
- make sure we declare everything properly, or mark it static
- use proper function declarations ("fn(void)" instead of "fn()")
Sparse is always right.
Diffstat (limited to 'diff-cache.c')
-rw-r--r-- | diff-cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/diff-cache.c b/diff-cache.c index 40fd6b4967..ff310ab357 100644 --- a/diff-cache.c +++ b/diff-cache.c @@ -204,11 +204,11 @@ int main(int argc, char **argv) diff_setup(detect_rename, diff_score_opt, reverse_diff, (generate_patch ? -1 : line_termination), - 0, 0); + NULL, 0); mark_merge_entries(); - tree = read_object_with_reference(tree_sha1, "tree", &size, 0); + tree = read_object_with_reference(tree_sha1, "tree", &size, NULL); if (!tree) die("bad tree object %s", argv[1]); if (read_tree(tree, size, 1)) |