pespin has submitted this change. (
https://gerrit.osmocom.org/c/osmo-trx/+/19819 )
Change subject: ipc: fix var declaration in for loop
......................................................................
ipc: fix var declaration in for loop
"""
error: 'for' loop initial declarations are only allowed in C99 or C11 mode
"""
Change-Id: I97cb9a0a3ecf64e3e5fcfca75431f8fe2a07bd10
---
M Transceiver52M/device/ipc/ipc-driver-test.c
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
pespin: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/Transceiver52M/device/ipc/ipc-driver-test.c
b/Transceiver52M/device/ipc/ipc-driver-test.c
index 79d49d6..2b006f0 100644
--- a/Transceiver52M/device/ipc/ipc-driver-test.c
+++ b/Transceiver52M/device/ipc/ipc-driver-test.c
@@ -215,6 +215,7 @@
{
/* calculate size needed */
unsigned int len;
+ unsigned int i;
global_dev = uhdwrap_open(open_req);
@@ -232,7 +233,7 @@
* additionally go for the producer init for both, so only we are
responsible for the init, instead
* of splitting it with the client and causing potential races if one
side uses it too early */
decoded_region = ipc_shm_decode_region(0, (struct ipc_shm_raw_region
*)shm);
- for (unsigned int i = 0; i < open_req->num_chans; i++) {
+ for (i = 0; i < open_req->num_chans; i++) {
// ios_tx_to_device[i] =
ipc_shm_init_consumer(decoded_region->channels[i]->dl_stream);
ios_tx_to_device[i] =
ipc_shm_init_producer(decoded_region->channels[i]->dl_stream);
ios_rx_from_device[i] =
ipc_shm_init_producer(decoded_region->channels[i]->ul_stream);
--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/19819
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I97cb9a0a3ecf64e3e5fcfca75431f8fe2a07bd10
Gerrit-Change-Number: 19819
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged