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.
This commit is contained in:
Linus Torvalds
2005-05-20 11:46:10 -07:00
parent 7ca45252a3
commit e99d59ff0b
18 changed files with 33 additions and 31 deletions

View File

@ -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))