diff options
author | Thomas Jansen <mithi@mithi.net> | 2008-12-02 03:00:02 +0100 |
---|---|---|
committer | Thomas Jansen <mithi@mithi.net> | 2008-12-02 03:00:02 +0100 |
commit | c06ce44768d6fd5a87b97d9c8ab6df10dd692eb6 (patch) | |
tree | 654ac296c574154b71d72e0eabd1a4c4fa123141 /src/command.c | |
parent | e6ae40982e89053a4326058e726422ef7602bd1a (diff) | |
download | mpd-c06ce44768d6fd5a87b97d9c8ab6df10dd692eb6.tar.gz mpd-c06ce44768d6fd5a87b97d9c8ab6df10dd692eb6.tar.xz mpd-c06ce44768d6fd5a87b97d9c8ab6df10dd692eb6.zip |
replaced mpd_printf etc by G_GNUC_PRINTF
We want to remove gcc.h eventually. This takes care of all the G_GNUC_PRINTF
macros.
Diffstat (limited to '')
-rw-r--r-- | src/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command.c b/src/command.c index 6b01fd45d..c725282aa 100644 --- a/src/command.c +++ b/src/command.c @@ -102,8 +102,8 @@ static void command_error_v(struct client *client, enum ack error, current_command = NULL; } -mpd_fprintf_ void command_error(struct client *client, enum ack error, - const char *fmt, ...) +G_GNUC_PRINTF(3, 4) void command_error(struct client *client, enum ack error, + const char *fmt, ...) { va_list args; va_start(args, fmt); @@ -111,7 +111,7 @@ mpd_fprintf_ void command_error(struct client *client, enum ack error, va_end(args); } -static bool mpd_fprintf__ +static bool G_GNUC_PRINTF(4, 5) check_uint32(struct client *client, uint32_t *dst, const char *s, const char *fmt, ...) { @@ -128,7 +128,7 @@ check_uint32(struct client *client, uint32_t *dst, return true; } -static bool mpd_fprintf__ +static bool G_GNUC_PRINTF(4, 5) check_int(struct client *client, int *value_r, const char *s, const char *fmt, ...) { |