diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-20 11:46:10 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-20 11:46:10 -0700 |
commit | e99d59ff0bff349ef205cef1076e0354c8130680 (patch) | |
tree | 530ca0d4db45176dad22016af0e2d61c2a321c70 /read-tree.c | |
parent | [PATCH] Simplify "reverse-diff" logic in the diff core. (diff) | |
download | tgif-e99d59ff0bff349ef205cef1076e0354c8130680.tar.xz |
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 'read-tree.c')
-rw-r--r-- | read-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/read-tree.c b/read-tree.c index c5f26d5f80..283f4d8577 100644 --- a/read-tree.c +++ b/read-tree.c @@ -13,7 +13,7 @@ static int unpack_tree(unsigned char *sha1) unsigned long size; int ret; - buffer = read_object_with_reference(sha1, "tree", &size, 0); + buffer = read_object_with_reference(sha1, "tree", &size, NULL); if (!buffer) return -1; ret = read_tree(buffer, size, stage); |