summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-07-16 22:51:43 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-07-16 22:51:43 -0500
commit416c1937c904ade3204e116cf44102ee7527366c (patch)
tree151abf0d31077c00d105d4c952cab8cd46763e94 /src/util.c
parentbce1879c1bd8b6fc64ed4ef4d133d70c0d1f1ded (diff)
downloadofono-416c1937c904ade3204e116cf44102ee7527366c.tar.bz2
util: Style issues
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index a9a69f92..057ae1cb 100644
--- a/src/util.c
+++ b/src/util.c
@@ -642,9 +642,8 @@ char *convert_gsm_to_utf8_with_lang(const unsigned char *text, long len,
*/
if (c == GUND)
c = gsm_locking_shift_lookup(&t, text[i]);
- } else {
+ } else
c = gsm_locking_shift_lookup(&t, text[i]);
- }
res_length += UTF8_LENGTH(c);
}
@@ -661,7 +660,7 @@ char *convert_gsm_to_utf8_with_lang(const unsigned char *text, long len,
if (text[i] == 0x1b) {
c = gsm_single_shift_lookup(&t, text[++i]);
- /* See 3GPP 23.038 section 6.2.1.1 */
+
if (c == GUND)
c = gsm_locking_shift_lookup(&t, text[i]);
} else