diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-24 07:09:09 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-24 07:09:09 -0800 |
commit | 0b359e89dba1da799393eb8d098475fd643159fe (patch) | |
tree | 87143dc08a9168c8d9938844818bc427ddf80e1f /src/util.c | |
parent | 2876e1aa64dfcdcb17248cf41b41512977ebcbc2 (diff) | |
download | ofono-0b359e89dba1da799393eb8d098475fd643159fe.tar.bz2 |
Use error label instead of err or err_out
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -555,7 +555,7 @@ char *convert_gsm_to_utf8_with_lang(const unsigned char *text, long len, return NULL; if (len < 0 && !terminator) - goto err_out; + goto error; if (len < 0) { i = 0; @@ -570,17 +570,17 @@ char *convert_gsm_to_utf8_with_lang(const unsigned char *text, long len, unsigned short c; if (text[i] > 0x7f) - goto err_out; + goto error; if (text[i] == 0x1b) { ++i; if (i >= len) - goto err_out; + goto error; c = gsm_single_shift_lookup(text[i], single_lang); if (c == GUND) - goto err_out; + goto error; } else { c = gsm_locking_shift_lookup(text[i], locking_lang); } @@ -591,7 +591,7 @@ char *convert_gsm_to_utf8_with_lang(const unsigned char *text, long len, res = g_malloc(res_length + 1); if (!res) - goto err_out; + goto error; out = res; @@ -614,7 +614,7 @@ char *convert_gsm_to_utf8_with_lang(const unsigned char *text, long len, if (items_written) *items_written = out - res; -err_out: +error: if (items_read) *items_read = i; |