Change in osmo-pcu[master]: pcu_l1_if: cosmetic: make {local, remote}_sockaddr scoped variables

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Fri Oct 9 14:53:41 UTC 2020


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/20512 )


Change subject: pcu_l1_if: cosmetic: make {local,remote}_sockaddr scoped variables
......................................................................

pcu_l1_if: cosmetic: make {local,remote}_sockaddr scoped variables

Change-Id: Ib5ddf3622226ac9c612a03ca32d373bcc9b208cf
---
M src/pcu_l1_if.cpp
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/12/20512/1

diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index c5c5f92..da54241 100644
--- a/src/pcu_l1_if.cpp
+++ b/src/pcu_l1_if.cpp
@@ -492,7 +492,6 @@
 {
 	struct gprs_rlcmac_bts *bts = bts_main_data();
 	struct gprs_bssgp_pcu *pcu;
-	struct osmo_sockaddr local_sockaddr = {}, remote_sockaddr = {};
 	int rc = 0;
 	int good_nsvc = 0;
 	unsigned int trx_nr, ts_nr;
@@ -580,6 +579,8 @@
 	}
 
 	for (unsigned int i = 0; i < ARRAY_SIZE(info_ind->nsvci); i++) {
+		struct osmo_sockaddr remote_sockaddr = { };
+		struct osmo_sockaddr local_sockaddr = { };
 		struct osmo_sockaddr_str sockstr;
 
 		switch (info_ind->address_type[i]) {

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Ib5ddf3622226ac9c612a03ca32d373bcc9b208cf
Gerrit-Change-Number: 20512
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201009/89454e28/attachment.htm>


More information about the gerrit-log mailing list