diff options
author | Pavel Roskin <proski@gnu.org> | 2005-09-30 00:53:14 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-30 09:47:40 +0400 |
commit | cdda474525f67d6f7c8bb9ae8e4c6bada2c50afa (patch) | |
tree | d60a5df547b411e68d2d3b99c01deab46c77dfd8 | |
parent | 7d167feb8bdb52a21a0ef1a4d3b2a8d1f1d413f1 (diff) |
[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 <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r-- | daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |