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

2
path.c
View File

@@ -131,7 +131,7 @@ int validate_symref(const char *path)
return -1;
}
static char *current_dir()
static char *current_dir(void)
{
return getcwd(pathname, sizeof(pathname));
}