Skip to content

Commit

Permalink
[PATCH] Make logerror() and loginfo() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Roskin authored and Junio C Hamano committed Sep 30, 2005
1 parent 7d167fe commit cdda474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ 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);
logreport(LOG_ERR, err, params);
va_end(params);
}

void loginfo(const char *err, ...)
static void loginfo(const char *err, ...)
{
va_list params;
if (!verbose)
Expand Down

0 comments on commit cdda474

Please sign in to comment.