From: Andre Noll Date: Sat, 6 Dec 2008 13:50:10 +0000 (+0100) Subject: Add missing __printf_2_3 to all para_log functions. X-Git-Tag: v0.3.4~86^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=bf475be06220f4e727cfcb960f29b031b0811991 Add missing __printf_2_3 to all para_log functions. --- diff --git a/audiod.c b/audiod.c index 80d14c48..bd0d049a 100644 --- a/audiod.c +++ b/audiod.c @@ -187,7 +187,7 @@ out: * \param ll loglevel * \param fmt the format string */ -void para_log(int ll, const char* fmt,...) +__printf_2_3 void para_log(int ll, const char* fmt,...) { va_list argp; FILE *outfd; diff --git a/fade.c b/fade.c index 48faed83..33f1ccbe 100644 --- a/fade.c +++ b/fade.c @@ -28,7 +28,7 @@ INIT_FADE_ERRLISTS; struct fade_args_info conf; -void para_log(__a_unused int ll, const char *fmt,...) +__printf_2_3 void para_log(__a_unused int ll, const char *fmt, ...) { va_list argp; time_t t1; diff --git a/gui.c b/gui.c index 58850715..61689029 100644 --- a/gui.c +++ b/gui.c @@ -489,7 +489,7 @@ static int add_output_line(char *line, __a_unused void *data) return 1; } -void para_log(int ll, const char *fmt,...) +__printf_2_3 void para_log(int ll, const char *fmt,...) { int color; char *msg; diff --git a/server.c b/server.c index 459f4462..0924ace4 100644 --- a/server.c +++ b/server.c @@ -136,7 +136,7 @@ struct server_command_task { * \param ll The log level. * \param fmt The format string describing the log message. */ -void para_log(int ll, const char* fmt,...) +__printf_2_3 void para_log(int ll, const char* fmt,...) { va_list argp; FILE *outfd;