From ebdabe23ce0914ef0017a949dfb2c22fa0517b87 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sun, 31 Dec 2006 19:19:17 +0000 Subject: added format attribute for x_syslog --- xine/post.c | 4 ++-- xine_frontend.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/xine/post.c b/xine/post.c index 97e2f75c..088e316d 100644 --- a/xine/post.c +++ b/xine/post.c @@ -52,8 +52,8 @@ !defined(XINELIBOUTPUT_DEBUG_STDERR) # undef x_syslog - - static void x_syslog(int level, const char *fmt, ...) + static void x_syslog(int level, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); + static void x_syslog(int level, const char *fmt, ...) { va_list argp; char buf[512]; diff --git a/xine_frontend.c b/xine_frontend.c index 18c78992..f79a000b 100644 --- a/xine_frontend.c +++ b/xine_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend.c,v 1.27 2006-12-24 16:51:14 phintuka Exp $ + * $Id: xine_frontend.c,v 1.28 2006-12-31 19:17:21 phintuka Exp $ * */ @@ -47,6 +47,7 @@ typedef struct { #undef x_syslog +static void x_syslog(int level, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); static void x_syslog(int level, const char *fmt, ...) { va_list argp; -- cgit v1.2.3