summaryrefslogtreecommitdiffstats
path: root/sms.c
diff options
context:
space:
mode:
authorAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-07-25 11:23:02 +0400
committerAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-07-25 11:23:02 +0400
commit49e342a59445280241298d273ca8aa3358f12587 (patch)
tree3ff86cc69e3dae7996b53652c8ffd7e3ec40883e /sms.c
parentad95b98c568e6b7dfdb21a57399ec847cd42b6ac (diff)
downloadhardware_replicant_libsamsung-ril-49e342a59445280241298d273ca8aa3358f12587.tar.gz
hardware_replicant_libsamsung-ril-49e342a59445280241298d273ca8aa3358f12587.tar.bz2
hardware_replicant_libsamsung-ril-49e342a59445280241298d273ca8aa3358f12587.zip
Fix some compilation warnings
Diffstat (limited to 'sms.c')
-rw-r--r--sms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sms.c b/sms.c
index c594a3b..ce53d8a 100644
--- a/sms.c
+++ b/sms.c
@@ -229,7 +229,7 @@ void ril_request_sms_lock_release(void)
*/
void ril_request_send_sms(RIL_Token t, void *data, size_t datalen)
{
- const char **request = (char **) data;
+ char **request = (char **) data;
char *pdu = request[1];
int pdu_len = pdu != NULL ? strlen(pdu) : 0;
char *smsc = request[0];
@@ -372,7 +372,7 @@ void ril_request_send_sms_complete(RIL_Token t, char *pdu, char *smsc)
LOGD("data_len is 0x%x + 0x%x + 0x%x = 0x%x\n", pdu_dec_len, smsc_len, send_msg_len, data_len);
pdu_dec = malloc(pdu_dec_len);
- hex2bin(pdu, pdu_len, pdu_dec);
+ hex2bin(pdu, pdu_len, (unsigned char*)pdu_dec);
/* PDU operations */
int pdu_tp_da_index = 2;