aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gb
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-01-21 10:22:09 +0100
committerHarald Welte <laforge@osmocom.org>2021-01-21 10:23:20 +0100
commit2846ee2624feae4d2aef00fc5f139ea91bf6126d (patch)
tree4c740b9765d5e66d3e85b18eeb68c8c90ce4e68f /tests/gb
parent8d6ca6933f34972dd158de5db69d70c6ab6472f6 (diff)
gprs_ns2_test: Fix compilation on Debian 8
[ 352s] gb/gprs_ns2_test.c: In function 'test_block_unblock_nsvc': [ 352s] gb/gprs_ns2_test.c:200:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode [ 352s] for (int i=0; i<2; i++) { [ 352s] ^ [ 352s] gb/gprs_ns2_test.c:200:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code Change-Id: I72310886bef4db635078b75715c9d98ee45391cc
Diffstat (limited to 'tests/gb')
-rw-r--r--tests/gb/gprs_ns2_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gb/gprs_ns2_test.c b/tests/gb/gprs_ns2_test.c
index 315a4d07..44c9ce41 100644
--- a/tests/gb/gprs_ns2_test.c
+++ b/tests/gb/gprs_ns2_test.c
@@ -188,6 +188,7 @@ void test_block_unblock_nsvc(void *ctx)
struct gprs_ns_hdr *nsh;
struct msgb *msg;
char idbuf[32];
+ int i;
printf("--- Testing NSE block unblock nsvc\n");
printf("---- Create NSE + Binds\n");
@@ -197,7 +198,7 @@ void test_block_unblock_nsvc(void *ctx)
nse = gprs_ns2_create_nse(nsi, 1001, GPRS_NS2_LL_UDP, NS2_DIALECT_STATIC_RESETBLOCK);
OSMO_ASSERT(nse);
- for (int i=0; i<2; i++) {
+ for (i=0; i<2; i++) {
printf("---- Create NSVC[i]\n");
snprintf(idbuf, sizeof(idbuf), "NSE%05u-dummy-%i", nse->nsei, i);
nsvc[i] = ns2_vc_alloc(bind[i], nse, false, NS2_VC_MODE_BLOCKRESET, idbuf);