From 13ef1266e96335725e4b00cbe84753cfb1d9c52c Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Sat, 7 Apr 2007 18:34:07 +0100 Subject: Use CC_ATTRIBUTE_FORMAT; replace __attribute((format(printf, ...))) accordingly. --- src/xine-engine/broadcaster.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/xine-engine/broadcaster.c') 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; -- cgit v1.2.3