THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

[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>
tags/v0.99.8
Pavel Roskin Junio C Hamano 14 years ago
parent
commit
cdda474525
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon.c

+ 2
- 2
daemon.c View File

@@ -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)


Loading…
Cancel
Save