diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-06-16 08:03:01 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-06-16 09:50:05 -0500 |
commit | b6588a9e9eeb6864b05e93d7fb52e92241e07bbe (patch) | |
tree | 5dba5f07909b1ce549d2ffe2a0fa8939c500efff /drivers/isimodem/sms.c | |
parent | b947ee702bdbda339dae5cfe2c0f57a7e00540f5 (diff) | |
download | ofono-b6588a9e9eeb6864b05e93d7fb52e92241e07bbe.tar.bz2 |
sms: Constify isimodem driver submit method
Diffstat (limited to 'drivers/isimodem/sms.c')
-rw-r--r-- | drivers/isimodem/sms.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/isimodem/sms.c b/drivers/isimodem/sms.c index 8d14eeb1..4caccc8f 100644 --- a/drivers/isimodem/sms.c +++ b/drivers/isimodem/sms.c @@ -459,8 +459,8 @@ error: CALLBACK_WITH_FAILURE(cb, -1, cbd->data); } -static gboolean submit_tpdu(GIsiClient *client, unsigned char *pdu, int pdu_len, - int tpdu_len, int mms, void *data, +static gboolean submit_tpdu(GIsiClient *client, const unsigned char *pdu, + int pdu_len, int tpdu_len, int mms, void *data, GDestroyNotify notify) { uint8_t use_sca = (pdu_len - tpdu_len) > 1; @@ -495,7 +495,7 @@ static gboolean submit_tpdu(GIsiClient *client, unsigned char *pdu, int pdu_len, uint8_t padding[4] = { 0 }; struct iovec iov[4] = { { msg, sizeof(msg) }, - { pdu + pdu_len - tpdu_len, tpdu_len }, + { (void *) (pdu + pdu_len - tpdu_len), tpdu_len }, { padding, tpdu_pad_len }, { sca_sb, sca_sb_len }, }; @@ -510,7 +510,7 @@ static gboolean submit_tpdu(GIsiClient *client, unsigned char *pdu, int pdu_len, notify); } -static gboolean submit_gsm_tpdu(GIsiClient *client, unsigned char *pdu, +static gboolean submit_gsm_tpdu(GIsiClient *client, const unsigned char *pdu, int pdu_len, int tpdu_len, int mms, void *data, GDestroyNotify notify) { @@ -546,7 +546,7 @@ static gboolean submit_gsm_tpdu(GIsiClient *client, unsigned char *pdu, uint8_t padding[4] = { 0 }; struct iovec iov[4] = { { msg, sizeof(msg) }, - { pdu + pdu_len - tpdu_len, tpdu_len }, + { (void *) (pdu + pdu_len - tpdu_len), tpdu_len }, { padding, tpdu_pad_len }, { sca_sb, sca_sb_len }, }; @@ -565,7 +565,7 @@ static gboolean submit_gsm_tpdu(GIsiClient *client, unsigned char *pdu, notify); } -static void isi_submit(struct ofono_sms *sms, unsigned char *pdu, +static void isi_submit(struct ofono_sms *sms, const unsigned char *pdu, int pdu_len, int tpdu_len, int mms, ofono_sms_submit_cb_t cb, void *data) { |