summaryrefslogtreecommitdiff
path: root/src/xine-engine/broadcaster.c
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-07 18:34:07 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-07 18:34:07 +0100
commit13ef1266e96335725e4b00cbe84753cfb1d9c52c (patch)
tree1f06fe28c309b2b5e2f24bc4cf440212c717b9cc /src/xine-engine/broadcaster.c
parent78689bf5bbd1dbe879d50aa0667db4603230390b (diff)
downloadxine-lib-13ef1266e96335725e4b00cbe84753cfb1d9c52c.tar.gz
xine-lib-13ef1266e96335725e4b00cbe84753cfb1d9c52c.tar.bz2
Use CC_ATTRIBUTE_FORMAT; replace __attribute((format(printf, ...))) accordingly.
Diffstat (limited to 'src/xine-engine/broadcaster.c')
-rw-r--r--src/xine-engine/broadcaster.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/xine-engine/broadcaster.c b/src/xine-engine/broadcaster.c
index 8ab661d3e..30cdadc7c 100644
--- a/src/xine-engine/broadcaster.c
+++ b/src/xine-engine/broadcaster.c
@@ -137,10 +137,7 @@ static int sock_data_write(xine_t *xine, int socket, char *buf, int len) {
return wlen;
}
-static int
-#ifdef __GNUC__
-__attribute__((format (printf, 3, 4)))
-#endif
+static int XINE_FORMAT_PRINTF(3, 4)
sock_string_write(xine_t *xine, int socket, char *msg, ...) {
char buf[_BUFSIZ];
va_list args;
@@ -182,10 +179,7 @@ static void broadcaster_data_write(broadcaster_t *this, char *buf, int len) {
}
}
-static void
-#ifdef __GNUC__
-__attribute__((format (printf, 2, 3)))
-#endif
+static void XINE_FORMAT_PRINTF(2, 3)
broadcaster_string_write(broadcaster_t *this, char *msg, ...) {
char buf[_BUFSIZ];
va_list args;