From: Andre Noll Date: Sat, 6 Jul 2013 14:23:31 +0000 (+0200) Subject: Make log functions static. X-Git-Tag: v0.5.1~12^2~7 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=01d37b0a87f936d2d673a0c689fda6e887619d97;p=paraslash.git Make log functions static. All PARA_XXX_LOG() macros use the public para_log function pointer for quite some time now, so the actual implementations of the various log functions can be made static. --- diff --git a/fade.c b/fade.c index 878b83a1..a8424d67 100644 --- a/fade.c +++ b/fade.c @@ -27,7 +27,7 @@ static struct mixer supported_mixer[] = {MIXER_ARRAY}; #define FOR_EACH_MIXER(i) for ((i) = 0; (i) < NUM_SUPPORTED_MIXERS; (i)++) static int loglevel; -__printf_2_3 void date_log(int ll, const char *fmt, ...) +static __printf_2_3 void date_log(int ll, const char *fmt, ...) { va_list argp; time_t t1; diff --git a/gui.c b/gui.c index baab0bd9..54fc9db9 100644 --- a/gui.c +++ b/gui.c @@ -526,7 +526,7 @@ static int add_output_line(char *line, void *data) static int loglevel; -__printf_2_3 void curses_log(int ll, const char *fmt,...) +static __printf_2_3 void curses_log(int ll, const char *fmt,...) { int color; char *msg; diff --git a/para.h b/para.h index 6655d356..29658f47 100644 --- a/para.h +++ b/para.h @@ -62,7 +62,7 @@ extern __printf_2_3 void (*para_log)(int, const char*, ...); * */ #define DEFINE_STDERR_LOGGER(funcname, loglevel_barrier) \ - __printf_2_3 void funcname(int ll, const char* fmt,...) \ + static __printf_2_3 void funcname(int ll, const char* fmt,...) \ { \ va_list argp; \ if (ll < loglevel_barrier) \