summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-06-29 12:28:06 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-06-29 12:28:06 +0000
commitfb195a9ef3010068f663faaf2ee284749af314a5 (patch)
treea0f87d9af3ca63e7538f4d36731fc25c9e696e6a
parenta4317ba4c8a7d96075802f98db257378381ff288 (diff)
downloadxine-lib-fb195a9ef3010068f663faaf2ee284749af314a5.tar.gz
xine-lib-fb195a9ef3010068f663faaf2ee284749af314a5.tar.bz2
Add missing format attributes for in-xine code.
CVS patchset: 8078 CVS date: 2006/06/29 12:28:06
-rw-r--r--src/input/vcd/xine-extra.c4
-rw-r--r--src/xine-engine/scratch.c6
-rw-r--r--src/xine-engine/scratch.h5
3 files changed, 9 insertions, 6 deletions
diff --git a/src/input/vcd/xine-extra.c b/src/input/vcd/xine-extra.c
index 27c89da22..4c41ca6be 100644
--- a/src/input/vcd/xine-extra.c
+++ b/src/input/vcd/xine-extra.c
@@ -1,5 +1,5 @@
/*
- $Id: xine-extra.c,v 1.1 2003/10/13 11:47:11 f1rmb Exp $
+ $Id: xine-extra.c,v 1.2 2006/06/29 12:28:06 dgp85 Exp $
Copyright (C) 2002 Rocky Bernstein <rocky@panix.com>
@@ -40,7 +40,7 @@ static xine_t *my_xine = NULL;
prints it to stream.
*/
-static void
+static void __attribute__(__format__(__printf__(4, 0)))
xine_vflog(xine_t *this, FILE *stream, int buf, const char *format,
va_list args)
{
diff --git a/src/xine-engine/scratch.c b/src/xine-engine/scratch.c
index 1ef248dd7..c629e0cbe 100644
--- a/src/xine-engine/scratch.c
+++ b/src/xine-engine/scratch.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: scratch.c,v 1.16 2003/12/09 00:02:37 f1rmb Exp $
+ * $Id: scratch.c,v 1.17 2006/06/29 12:28:06 dgp85 Exp $
*
* top-level xine functions
*
@@ -40,7 +40,9 @@
#include "scratch.h"
#include "xineutils.h"
-static void scratch_printf (scratch_buffer_t *this, const char *format, va_list argp) {
+static void __attribute__((__format__(__printf__, 2, 0)))
+ scratch_printf (scratch_buffer_t *this, const char *format, va_list argp)
+{
vsnprintf (this->lines[this->cur], SCRATCH_LINE_LEN_MAX, format, argp);
lprintf ("printing format %s to line %d\n", format, this->cur);
this->cur = (this->cur + 1) % this->num_lines;
diff --git a/src/xine-engine/scratch.h b/src/xine-engine/scratch.h
index 40e116ab8..34e2b3d9b 100644
--- a/src/xine-engine/scratch.h
+++ b/src/xine-engine/scratch.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: scratch.h,v 1.8 2003/12/09 00:02:37 f1rmb Exp $
+ * $Id: scratch.h,v 1.9 2006/06/29 12:28:06 dgp85 Exp $
*
* scratch buffer for log output
*
@@ -34,7 +34,8 @@ typedef struct scratch_buffer_s scratch_buffer_t;
struct scratch_buffer_s {
- void (*scratch_printf) (scratch_buffer_t *this, const char *format, va_list ap);
+ void __attribute__((__format__(__printf__, 2, 0)))
+ (*scratch_printf) (scratch_buffer_t *this, const char *format, va_list ap);
const char **(*get_content) (scratch_buffer_t *this);