From: Pavel Roskin Date: Thu, 29 Sep 2005 20:53:14 +0000 (-0400) Subject: [PATCH] Make logerror() and loginfo() static X-Git-Tag: v0.99.8~28 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cdda474525f67d6f7c8bb9ae8e4c6bada2c50afa;p=git.git [PATCH] Make logerror() and loginfo() static 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 Signed-off-by: Junio C Hamano --- diff --git a/daemon.c b/daemon.c index a369ce527..65e62d7bb 100644 --- a/daemon.c +++ b/daemon.c @@ -57,7 +57,7 @@ static void logreport(int priority, const char *err, va_list params) write(2, buf, buflen); } -void logerror(const char *err, ...) +static void logerror(const char *err, ...) { va_list params; va_start(params, err); @@ -65,7 +65,7 @@ void logerror(const char *err, ...) va_end(params); } -void loginfo(const char *err, ...) +static void loginfo(const char *err, ...) { va_list params; if (!verbose)