summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d167fe)
raw | patch | inline | side by side (parent: 7d167fe)
author | Pavel Roskin <proski@gnu.org> | |
Thu, 29 Sep 2005 20:53:14 +0000 (16:53 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 30 Sep 2005 05:47:40 +0000 (22:47 -0700) |
Make logerror() and loginfo() static
logerror() and loginfo() in daemon.c are never declared and never called
from other files, therefore they should be declared static. Found by
sparse.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
logerror() and loginfo() in daemon.c are never declared and never called
from other files, therefore they should be declared static. Found by
sparse.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c | patch | blob | history |
diff --git a/daemon.c b/daemon.c
index a369ce527eb4bd36528ce53da1048618d2373341..65e62d7bb16943ce47d426d817bc313889d68dfa 100644 (file)
--- a/daemon.c
+++ b/daemon.c
write(2, buf, buflen);
}
-void logerror(const char *err, ...)
+static void logerror(const char *err, ...)
{
va_list params;
va_start(params, err);
va_end(params);
}
-void loginfo(const char *err, ...)
+static void loginfo(const char *err, ...)
{
va_list params;
if (!verbose)