diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-06-03 14:33:38 +0200 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-06-03 14:33:38 +0200 |
commit | 0ec3a1f6f59f0055f51223fa9f513c2ce289d0d8 (patch) | |
tree | 0f0f994cc750953a94d95eae6210b44834d65f7e | |
parent | 3ba458b87c1974f26e9b50835c3c8e3cabb60a25 (diff) | |
download | hardware_ril_samsung-ril-0ec3a1f6f59f0055f51223fa9f513c2ce289d0d8.zip hardware_ril_samsung-ril-0ec3a1f6f59f0055f51223fa9f513c2ce289d0d8.tar.gz hardware_ril_samsung-ril-0ec3a1f6f59f0055f51223fa9f513c2ce289d0d8.tar.bz2 |
little fixes
-rw-r--r-- | ss.c | 5 | ||||
-rw-r--r-- | utils.c | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -42,7 +42,10 @@ int ipc_ss_ussd_callback(struct ipc_message *message) goto error; } - ril_request_complete(ipc_fmt_request_token(message->aseq), RIL_E_SUCCESS, NULL, 0); + rc = ril_request_complete(ipc_fmt_request_token(message->aseq), RIL_E_SUCCESS, NULL, 0); + if (rc < 0) + goto error; + global_ussd_state = 0; goto complete; @@ -111,7 +111,7 @@ int ascii2gsm7_ussd(char *data, unsigned char **data_enc, int length) enc_length = ((length * 7) - (length * 7) % 8) / 8; enc_length += (length * 7) % 8 > 0 ? 1 : 0; - //FIXME: why does samsung does that? + // FIXME: why does Samsung do this? enc_length++; enc = malloc(enc_length); @@ -140,7 +140,7 @@ int ascii2gsm7_ussd(char *data, unsigned char **data_enc, int length) *data_enc = enc; - //FIXME: what is going on here? + // FIXME: what is going on here? enc[enc_length - 2] |= 0x30; enc[enc_length - 1] = 0x02; |