From 36cd74bfa743d3d9661306834f625396f3e98d87 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 27 Apr 2011 18:00:08 -0700 Subject: [PATCH] Fix format string warnings --- audio/headset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/headset.c b/audio/headset.c index 0be06cb20..1a3c3654d 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -412,7 +412,7 @@ static int report_indicators(struct audio_device *device, const char *buf) else str = indicator_values(ag.indicators); - err = headset_send(hs, str); + err = headset_send(hs, "%s", str); g_free(str); @@ -906,7 +906,7 @@ static int response_and_hold(struct audio_device *device, const char *buf) if (ag.rh >= 0) headset_send(hs, "\r\n+BTRH: %d\r\n", ag.rh); - return headset_send(hs, "\r\nOK\r\n", ag.rh); + return headset_send(hs, "\r\nOK\r\n"); } int telephony_last_dialed_number_rsp(void *telephony_device, cme_error_t err) -- 2.47.3