diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-04-27 18:00:02 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-04-27 18:00:02 -0700 |
commit | 407e977f8d999647a800d6fb0c9d36ce121f57a0 (patch) | |
tree | 78dc0a50b59ca423b635a2cd102b84347122f8b8 /audio/headset.c | |
parent | c6d046432127977475d3a06f1f60acf85adb3fbf (diff) | |
download | bluez-407e977f8d999647a800d6fb0c9d36ce121f57a0.tar.gz |
Add format string warnings to printf-style functions
Diffstat (limited to 'audio/headset.c')
-rw-r--r-- | audio/headset.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/headset.c b/audio/headset.c index 7e68746c..0be06cb2 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -318,7 +318,8 @@ static int headset_send_valist(struct headset *hs, char *format, va_list ap) return 0; } -static int headset_send(struct headset *hs, char *format, ...) +static int __attribute__((format(printf, 2, 3))) + headset_send(struct headset *hs, char *format, ...) { va_list ap; int ret; @@ -502,7 +503,8 @@ static unsigned int connect_cb_new(struct headset *hs, return cb->id; } -static void send_foreach_headset(GSList *devices, +static void __attribute__((format(printf, 3, 4))) + send_foreach_headset(GSList *devices, int (*cmp) (struct headset *hs), char *format, ...) { |