summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/input_cdda.c8
-rw-r--r--src/input/vcd/xine-extra.h14
2 files changed, 17 insertions, 5 deletions
diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c
index d1940f831..3eba52e10 100644
--- a/src/input/input_cdda.c
+++ b/src/input/input_cdda.c
@@ -20,7 +20,7 @@
* Compact Disc Digital Audio (CDDA) Input Plugin
* by Mike Melanson (melanson@pcisys.net)
*
- * $Id: input_cdda.c,v 1.84 2006/02/09 09:29:55 miguelfreitas Exp $
+ * $Id: input_cdda.c,v 1.85 2006/04/21 23:15:45 dsalt Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -908,7 +908,11 @@ static int parse_url (char *urlbuf, char** host, int *port) {
}
#endif
-static int network_command( xine_stream_t *stream, int socket, char *data_buf, char *msg, ...)
+static int
+#ifdef __GNUC__
+__attribute__((format (printf, 4, 5)))
+#endif
+network_command( xine_stream_t *stream, int socket, char *data_buf, char *msg, ...)
{
char buf[_BUFSIZ];
va_list args;
diff --git a/src/input/vcd/xine-extra.h b/src/input/vcd/xine-extra.h
index 5a2e0b127..d0b2a0bb5 100644
--- a/src/input/vcd/xine-extra.h
+++ b/src/input/vcd/xine-extra.h
@@ -1,5 +1,5 @@
/*
- $Id: xine-extra.h,v 1.1 2003/10/13 11:47:11 f1rmb Exp $
+ $Id: xine-extra.h,v 1.2 2006/04/21 23:15:45 dsalt Exp $
Copyright (C) 2002 Rocky Bernstein <rocky@panix.com>
@@ -80,7 +80,11 @@ bool xine_log_init(xine_t *this);
an error, such as logging wasn't initialized. On error, nothing is
logged.
*/
-bool xine_log_msg(const char *format, ...);
+bool xine_log_msg(const char *format, ...)
+#ifdef __GNUC__
+__attribute__((format (printf, 1, 2)))
+#endif
+;
/*! This routine is like xine_log without any xine-specific paramenters.
Before calling this routine you should have set up a xine log buffer via
@@ -92,7 +96,11 @@ bool xine_log_msg(const char *format, ...);
an error, such as logging wasn't initialized. On error, nothing is
logged.
*/
-bool xine_log_err(const char *format, ...);
+bool xine_log_err(const char *format, ...)
+#ifdef __GNUC__
+__attribute__((format (printf, 1, 2)))
+#endif
+;
/* Free all (num_mrls) MRLS. */
void xine_free_mrls(int *num_mrls, xine_mrl_t **mrls);