gbproxy: Fix build on Deiban 8
[ 258s] CC gb_proxy.o [ 258s] gb_proxy.c: In function 'gbproxy_select_sgsn_bvc': [ 258s] gb_proxy.c:293:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode [ 258s] for (int i = 0; i < ARRAY_SIZE(cell->sgsn_bvc); i++) { [ 258s] ^ [ 258s] gb_proxy.c:293:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code Change-Id: I717410b11f1ee38d49e9ca5af593cb59a244ae0a
This commit is contained in:
parent
216dff83d3
commit
02d7c48e71
|
@ -282,6 +282,7 @@ static struct gbproxy_bvc *gbproxy_select_sgsn_bvc(struct gbproxy_config *cfg, s
|
||||||
{
|
{
|
||||||
struct gbproxy_sgsn *sgsn;
|
struct gbproxy_sgsn *sgsn;
|
||||||
struct gbproxy_bvc *sgsn_bvc = NULL;
|
struct gbproxy_bvc *sgsn_bvc = NULL;
|
||||||
|
int i;
|
||||||
|
|
||||||
sgsn = gbproxy_select_sgsn(cfg, tlli);
|
sgsn = gbproxy_select_sgsn(cfg, tlli);
|
||||||
if (!sgsn) {
|
if (!sgsn) {
|
||||||
|
@ -290,7 +291,7 @@ static struct gbproxy_bvc *gbproxy_select_sgsn_bvc(struct gbproxy_config *cfg, s
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get the BVC for this SGSN/NSE */
|
/* Get the BVC for this SGSN/NSE */
|
||||||
for (int i = 0; i < ARRAY_SIZE(cell->sgsn_bvc); i++) {
|
for (i = 0; i < ARRAY_SIZE(cell->sgsn_bvc); i++) {
|
||||||
sgsn_bvc = cell->sgsn_bvc[i];
|
sgsn_bvc = cell->sgsn_bvc[i];
|
||||||
if (!sgsn_bvc)
|
if (!sgsn_bvc)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue