Change in osmo-sgsn[master]: gbproxy: Fix build on Deiban 8

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Dec 30 11:14:04 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/21897 )


Change subject: gbproxy: Fix build on Deiban 8
......................................................................

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
---
M src/gbproxy/gb_proxy.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/97/21897/1

diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c
index 7e9d9c3..d86c6ae 100644
--- a/src/gbproxy/gb_proxy.c
+++ b/src/gbproxy/gb_proxy.c
@@ -282,6 +282,7 @@
 {
 	struct gbproxy_sgsn *sgsn;
 	struct gbproxy_bvc *sgsn_bvc = NULL;
+	int i;
 
 	sgsn = gbproxy_select_sgsn(cfg, tlli);
 	if (!sgsn) {
@@ -290,7 +291,7 @@
 	}
 
 	/* 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];
 		if (!sgsn_bvc)
 			continue;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/21897
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I717410b11f1ee38d49e9ca5af593cb59a244ae0a
Gerrit-Change-Number: 21897
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201230/9b10006b/attachment.htm>


More information about the gerrit-log mailing list