From bf475be06220f4e727cfcb960f29b031b0811991 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 6 Dec 2008 14:50:10 +0100 Subject: [PATCH] Add missing __printf_2_3 to all para_log functions. --- audiod.c | 2 +- fade.c | 2 +- gui.c | 2 +- server.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.5