* [PATCH] isimodem/ussd: clean const casts
@ 2010-09-16 13:50 Pekka.Pessi
2010-09-16 13:59 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Pekka.Pessi @ 2010-09-16 13:50 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]
From: Pekka Pessi <Pekka.Pessi@nokia.com>
---
drivers/isimodem/ussd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/isimodem/ussd.c b/drivers/isimodem/ussd.c
index 19ba30e..2f4091c 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:
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-16 13:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-16 13:50 [PATCH] isimodem/ussd: clean const casts Pekka.Pessi
2010-09-16 13:59 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.