summaryrefslogtreecommitdiff
path: root/drivers/atmodem
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2018-12-27 13:48:12 -0600
committerDenis Kenzior <denkenz@gmail.com>2018-12-27 18:18:51 -0600
commit305ae9ba8497dfe2757ecf6c48840825b0b7cd3d (patch)
tree3ad3497b272eae7bae15b8f311cb274fd341b86e /drivers/atmodem
parent5e1471d3eb56f6a9987a7f55c02c74fce07ae40e (diff)
downloadofono-305ae9ba8497dfe2757ecf6c48840825b0b7cd3d.tar.gz
atmodem: Use l_util_hexstring instead of encode_hex
Diffstat (limited to 'drivers/atmodem')
-rw-r--r--drivers/atmodem/sms.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c
index 277d6517..2f869da6 100644
--- a/drivers/atmodem/sms.c
+++ b/drivers/atmodem/sms.c
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <glib.h>
+#include <ell/ell.h>
#include <ofono/log.h>
#include <ofono/modem.h>
@@ -921,7 +922,7 @@ static void construct_ack_pdu(struct sms_data *d)
if (len != tpdu_len)
goto err;
- d->cnma_ack_pdu = encode_hex(pdu, tpdu_len, 0);
+ d->cnma_ack_pdu = l_util_hexstring(pdu, tpdu_len);
if (d->cnma_ack_pdu == NULL)
goto err;
@@ -1318,7 +1319,7 @@ static void at_sms_remove(struct ofono_sms *sms)
{
struct sms_data *data = ofono_sms_get_data(sms);
- g_free(data->cnma_ack_pdu);
+ l_free(data->cnma_ack_pdu);
if (data->timeout_source > 0)
g_source_remove(data->timeout_source);