Fix sparse warnings

Make some functions static and convert func() function prototypes to to
func(void).  Fix declaration after statement, missing declaration and
redundant declaration warnings.

Signed-off-by: Timo Hirvonen <tihirvon@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Timo Hirvonen
2005-11-21 02:52:52 +02:00
committed by Junio C Hamano
parent 8fc66df237
commit bd22c904a0
4 changed files with 31 additions and 32 deletions

View File

@ -230,8 +230,6 @@ int main(int argc, char **argv)
fwrite(p_start, p - p_start, 1, stdout);
}
} else if (all) {
extern struct object **objs;
extern int nr_objs;
int i;
for (i = 0; i < nr_objs; i++)