summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-12-31 19:19:17 +0000
committerphintuka <phintuka>2006-12-31 19:19:17 +0000
commitebdabe23ce0914ef0017a949dfb2c22fa0517b87 (patch)
tree24fac21371bfffb35d3859184ce1ec85aa1334ce
parent53b70abd0be65b2e3b541a95d89c6c63c6901a75 (diff)
downloadxineliboutput-ebdabe23ce0914ef0017a949dfb2c22fa0517b87.tar.gz
xineliboutput-ebdabe23ce0914ef0017a949dfb2c22fa0517b87.tar.bz2
added format attribute for x_syslog
-rw-r--r--xine/post.c4
-rw-r--r--xine_frontend.c3
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;