diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-03-31 22:40:51 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-03-31 22:48:13 +0200 |
commit | 05951ff716f62b05da40fef1aa1f82e2fa9d2601 (patch) | |
tree | c5b0f5ccc481a6ba031e09ecd6a143601d512dca | |
parent | 43b201403d470c0c6650e33a9811b808f5b126d6 (diff) | |
download | hardware_ril_samsung-ril-05951ff716f62b05da40fef1aa1f82e2fa9d2601.zip hardware_ril_samsung-ril-05951ff716f62b05da40fef1aa1f82e2fa9d2601.tar.gz hardware_ril_samsung-ril-05951ff716f62b05da40fef1aa1f82e2fa9d2601.tar.bz2 |
Coding style: add spaces around equal sign in for statements
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r-- | call.c | 8 | ||||
-rw-r--r-- | gprs.c | 10 | ||||
-rw-r--r-- | net.c | 6 | ||||
-rw-r--r-- | sec.c | 2 | ||||
-rw-r--r-- | srs.c | 2 | ||||
-rw-r--r-- | util.c | 4 |
6 files changed, 16 insertions, 16 deletions
@@ -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; @@ -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); @@ -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]); @@ -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; @@ -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); @@ -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; |