From a38a88c8f168f93f2c9d257607e5289d3b485874 Mon Sep 17 00:00:00 2001 From: erin_yueh Date: Wed, 2 Jan 2008 03:09:03 +0000 Subject: gsmd: add TP-STATUS return code table (Erin Yueh) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3758 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/sms_pdu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gsmd') diff --git a/src/gsmd/sms_pdu.c b/src/gsmd/sms_pdu.c index ae7a69d..08a0c1a 100644 --- a/src/gsmd/sms_pdu.c +++ b/src/gsmd/sms_pdu.c @@ -221,9 +221,9 @@ int sms_pdu_to_msg(struct gsmd_sms_list *dst, return 1; /* TP-MR set it gsmd_sms_list.index*/ - dst->index = (int) src[1]; + dst->index = (u_int8_t) src[1]; /* TP-STATUS set it to coding_scheme */ - dst->payload.coding_scheme = (int) src[len-1]; + dst->payload.coding_scheme = (u_int8_t) src[len-1]; /* TP-RA */ i = sms_number_bytelen(src[3], src[2]); if (len < 13 + i) -- cgit v1.2.3