Fix build on Debian8

We cannot use C99 or higher features in C code!

Last lines of build log:
[  265s]    for (unsigned int i = 0; i < decoded_region->num_chans; i++)
[  265s]    ^
[  265s] ipc-driver-test.c:473:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile
your code
[  265s] Makefile:580: recipe for target 'ipc_driver_test-ipc-driver-test.o' failed
[  265s] make[5]: *** [ipc_driver_test-ipc-driver-test.o] Error 1

Change-Id: I80c9cbd77f1cdf323ad2b492de7e9a177840c383
This commit is contained in:
Harald Welte 2020-08-27 10:08:53 +02:00
parent 2a0fb962c7
commit 8808fa86f0
1 changed files with 4 additions and 2 deletions

View File

@ -469,9 +469,11 @@ int main(int argc, char **argv)
while (!ipc_exit_requested)
osmo_select_main(0);
if (global_dev)
for (unsigned int i = 0; i < decoded_region->num_chans; i++)
if (global_dev) {
unsigned int i;
for (i = 0; i < decoded_region->num_chans; i++)
uhdwrap_stop(global_dev, i);
}
ipc_sock_close(global_ipc_sock_state);
return 0;