laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/20486 )

Change subject: pcu_sock: cosmetic: make *nsvc a scoped and const variable
......................................................................

pcu_sock: cosmetic: make *nsvc a scoped and const variable

Change-Id: I707bb75f15ccaee5c67fa4a7e87dc70c9b982973
---
M src/common/pcu_sock.c
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  pespin: Looks good to me, approved



diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index ff788bf..7f7f7cf 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -241,7 +241,6 @@
        struct gsm_pcu_if_info_ind *info_ind;
        struct gsm_bts *bts;
        struct gprs_rlc_cfg *rlcc;
-       struct gsm_bts_gprs_nsvc *nsvc;
        struct gsm_bts_trx *trx;
        int i;

@@ -328,7 +327,7 @@
 
        /* NSVC */
        for (i = 0; i < ARRAY_SIZE(bts->gprs.nsvc); i++) {
-               nsvc = &bts->gprs.nsvc[i];
+               const struct gsm_bts_gprs_nsvc *nsvc = &bts->gprs.nsvc[i];
                info_ind->nsvci[i] = nsvc->nsvci;
                info_ind->local_port[i] = nsvc->local.u.sin.sin_port;
                info_ind->remote_port[i] = nsvc->remote.u.sin.sin_port;

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I707bb75f15ccaee5c67fa4a7e87dc70c9b982973
Gerrit-Change-Number: 20486
Gerrit-PatchSet: 2
Gerrit-Owner: Vadim Yanitskiy <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to