Fix sparse warnings.

Mainly making a lot of local functions and variables be marked "static",
but there was a "zero as NULL" warning in there too.
This commit is contained in:
Linus Torvalds
2005-07-03 10:10:45 -07:00
parent 44c9e8594e
commit 6da4016aea
9 changed files with 18 additions and 18 deletions

View File

@ -79,7 +79,7 @@ static struct tree_entry_list *find_entry(const char *path)
slash = strchr(path, '/');
if (!slash) {
len = strlen(path);
next = 0;
next = NULL;
}
else {
next = slash + 1;