aboutsummaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorTimo Hirvonen <tihirvon@gmail.com>2005-11-21 02:52:52 +0200
committerJunio C Hamano <junkio@cox.net>2005-11-20 22:14:16 -0800
commitbd22c904a0f1c88a3a7bfa96bbf690de2f5cb278 (patch)
treedd1fe80dd0120cfcb2f551d6a4bf88bebe29ce8b /path.c
parent8fc66df237afce0b4318657f166b3583831949f3 (diff)
downloadgit-bd22c904a0f1c88a3a7bfa96bbf690de2f5cb278.tar.gz
git-bd22c904a0f1c88a3a7bfa96bbf690de2f5cb278.tar.xz
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>
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index d635470de..84b3272d9 100644
--- a/path.c
+++ b/path.c
@@ -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));
}