From a111048129318d631c3123b10640a23208b8396b Mon Sep 17 00:00:00 2001 From: Pekka Pessi Date: Thu, 16 Sep 2010 16:50:06 +0300 Subject: [PATCH] isimodem/ussd: clean const casts --- drivers/isimodem/ussd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/isimodem/ussd.c b/drivers/isimodem/ussd.c index 19ba30eb..2f4091ce 100644 --- a/drivers/isimodem/ussd.c +++ b/drivers/isimodem/ussd.c @@ -119,7 +119,7 @@ error: } static GIsiRequest *ussd_send(GIsiClient *client, - int dcs, uint8_t *str, size_t len, + int dcs, uint8_t const *str, size_t len, void *data, GDestroyNotify notify) { const uint8_t msg[] = { @@ -135,7 +135,7 @@ static GIsiRequest *ussd_send(GIsiClient *client, const struct iovec iov[2] = { { (uint8_t *)msg, sizeof(msg) }, - { str, len } + { (uint8_t *)str, len } }; return g_isi_vsend(client, iov, 2, SS_TIMEOUT, @@ -152,7 +152,7 @@ static void isi_request(struct ofono_ussd *ussd, int dcs, if (!cbd) goto error; - if (ussd_send(ud->client, dcs, (guint8 *) pdu, len, cbd, g_free)) + if (ussd_send(ud->client, dcs, pdu, len, cbd, g_free)) return; error: