summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--call.c8
-rw-r--r--gprs.c10
-rw-r--r--net.c6
-rw-r--r--sec.c2
-rw-r--r--srs.c2
-rw-r--r--util.c4
6 files changed, 16 insertions, 16 deletions
diff --git a/call.c b/call.c
index 4258bf1..6b34eac 100644
--- a/call.c
+++ b/call.c
@@ -156,7 +156,7 @@ void ipc_call_list(struct ipc_message_info *info)
current_calls = (RIL_Call **) calloc(1, count * sizeof(RIL_Call *));
entry = (struct ipc_call_list_entry *) ((char *) info->data + sizeof(unsigned char));
- for (i=0 ; i < count ; i++) {
+ for (i = 0 ; i < count ; i++) {
if (((int) entry - (int) info->data) >= (int) info->length)
goto error;
@@ -183,7 +183,7 @@ void ipc_call_list(struct ipc_message_info *info)
ril_request_complete(ril_request_get_token(info->aseq), RIL_E_SUCCESS, current_calls, (count * sizeof(RIL_Call *)));
- for (i=0 ; i < count ; i++) {
+ for (i = 0 ; i < count ; i++) {
if (current_calls[i]->number != NULL)
free(current_calls[i]->number);
@@ -196,7 +196,7 @@ void ipc_call_list(struct ipc_message_info *info)
error:
if (current_calls != NULL) {
- for (i=0 ; i < count ; i++) {
+ for (i = 0 ; i < count ; i++) {
if (current_calls[i]->number != NULL)
free(current_calls[i]->number);
@@ -276,7 +276,7 @@ void ril_request_dtmf(RIL_Token t, void *data, int length)
burst[0] = count;
// Apparently, it's possible to set multiple DTMF tones on this message
- for (i=0 ; i < count ; i++) {
+ for (i = 0 ; i < count ; i++) {
cont_dtmf.state = IPC_CALL_DTMF_STATE_START;
cont_dtmf.tone = tone;
diff --git a/gprs.c b/gprs.c
index 560ce04..039a859 100644
--- a/gprs.c
+++ b/gprs.c
@@ -194,7 +194,7 @@ struct ril_gprs_connection *ril_gprs_connection_start(void)
ipc_client_gprs_get_capabilities(ipc_client, &gprs_capabilities);
cid_max = gprs_capabilities.cid_max;
- for (i=0 ; i < cid_max ; i++) {
+ for (i = 0 ; i < cid_max ; i++) {
cid = i + 1;
list = ril_data.gprs_connections;
while (list != NULL) {
@@ -974,10 +974,10 @@ void ipc_gprs_pdp_context_fix(RIL_Data_Call_Response *data_call_list, int c)
{
int i, j, k;
- for (i=0 ; i < c ; i++) {
- for (j=i-1 ; j >= 0 ; j--) {
+ for (i = 0 ; i < c ; i++) {
+ for (j = i-1 ; j >= 0 ; j--) {
if (data_call_list[i].cid == data_call_list[j].cid) {
- for (k=0 ; k < c ; k++) {
+ for (k = 0 ; k < c ; k++) {
if (data_call_list[k].cid == 1) {
data_call_list[i].cid = 0;
break;
@@ -1011,7 +1011,7 @@ void ipc_gprs_pdp_context(struct ipc_message_info *info)
context = (struct ipc_gprs_pdp_context_get *) info->data;
- for (i=0 ; i < IPC_GPRS_PDP_CONTEXT_GET_DESC_COUNT ; i++) {
+ for (i = 0 ; i < IPC_GPRS_PDP_CONTEXT_GET_DESC_COUNT ; i++) {
data_call_list[i].cid = context->desc[i].cid;
data_call_list[i].active =
ipc2ril_gprs_connection_active(context->desc[i].state);
diff --git a/net.c b/net.c
index 8312adc..094819a 100644
--- a/net.c
+++ b/net.c
@@ -244,7 +244,7 @@ void ril_plmn_string(char *plmn_data, char *response[3])
LOGD("Found %d plmn records", plmn_entries);
- for (i=0 ; i < plmn_entries ; i++) {
+ for (i = 0 ; i < plmn_entries ; i++) {
if (plmn_list[i].mcc == mcc && plmn_list[i].mnc == mnc) {
asprintf(&response[0], "%s", plmn_list[i].operator_long);
asprintf(&response[1], "%s", plmn_list[i].operator_short);
@@ -729,7 +729,7 @@ void ipc_net_plmn_list(struct ipc_message_info *info)
response = (char **) calloc(1, length);
count = 0;
- for (i=0 ; i < entries_info->num ; i++) {
+ for (i = 0 ; i < entries_info->num ; i++) {
// Assumed type for 'emergency only' PLMNs
if (entries[i].type == 0x01)
continue;
@@ -759,7 +759,7 @@ void ipc_net_plmn_list(struct ipc_message_info *info)
length = sizeof(char *) * 4 * count;
ril_request_complete(ril_request_get_token(info->aseq), RIL_E_SUCCESS, response, length);
- for (i=0 ; i < entries_info->num ; i++)
+ for (i = 0 ; i < entries_info->num ; i++)
if (response[i] != NULL)
free(response[i]);
diff --git a/sec.c b/sec.c
index e645ba1..390d1d7 100644
--- a/sec.c
+++ b/sec.c
@@ -651,7 +651,7 @@ void ipc_sec_rsim_access(struct ipc_message_info *info)
// Fallback to EF
sim_file_response.file_type = SIM_FILE_TYPE_EF;
- for (i=0 ; i < sim_file_ids_count ; i++) {
+ for (i = 0 ; i < sim_file_ids_count ; i++) {
if (sim_io_info->fileid == sim_file_ids[i].file_id) {
sim_file_response.file_type = sim_file_ids[i].type;
break;
diff --git a/srs.c b/srs.c
index 7e89a29..7ce2466 100644
--- a/srs.c
+++ b/srs.c
@@ -362,7 +362,7 @@ static int srs_server_open(void)
int server_fd;
int t;
- for (t=0 ; t < 5 ; t++) {
+ for (t = 0 ; t < 5 ; t++) {
unlink(SRS_SOCKET_NAME);
#if RIL_VERSION >= 6
server_fd = socket_local_server(SRS_SOCKET_NAME, ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_STREAM);
diff --git a/util.c b/util.c
index 60ba824..a23771f 100644
--- a/util.c
+++ b/util.c
@@ -143,7 +143,7 @@ int gsm72ascii(unsigned char *data, char **data_dec, int length)
memset(dec, 0, dec_length);
- for (i=0 ; i < length ; i++)
+ for (i = 0 ; i < length ; i++)
{
d = 7 - i % 7;
if (d == 7 && i != 0)
@@ -183,7 +183,7 @@ int ascii2gsm7(char *data, unsigned char **data_enc, int length)
enc = malloc(enc_length);
memset(enc, 0, enc_length);
- for (i=0 ; i < length ; i++)
+ for (i = 0 ; i < length ; i++)
{
// offset from the right of data to keep
d_off = i % 8;