diff options
author | Yang Gu <yang.gu@intel.com> | 2010-05-10 18:38:50 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-11 12:24:02 -0500 |
commit | 43741233243a0aa2d48122e399d76875a195d125 (patch) | |
tree | aae8271b6947ed4e08c3c5a1a791ba0050449699 /src | |
parent | dff6deb6a3a337336bca3884be0b7ac863c6ffe1 (diff) | |
download | ofono-43741233243a0aa2d48122e399d76875a195d125.tar.gz |
stkutil: Refactor parser for tone objects
Diffstat (limited to 'src')
-rw-r--r-- | src/stkutil.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/stkutil.c b/src/stkutil.c index 0f0ea347..44cef107 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -511,17 +511,8 @@ static gboolean parse_dataobj_text(struct comprehension_tlv_iter *iter, static gboolean parse_dataobj_tone(struct comprehension_tlv_iter *iter, void *user) { - unsigned char *tone = user; - const unsigned char *data; - - if (comprehension_tlv_iter_get_length(iter) != 1) - return FALSE; - - data = comprehension_tlv_iter_get_data(iter); - - *tone = data[0]; - - return TRUE; + unsigned char *byte = user; + return parse_dataobj_common_byte(iter, byte); } /* Defined in TS 102.223 Section 8.18 */ |