Change in osmo-pcu[master]: gprs_bssgp_pcu: make osmo_sockaddr local/sgsn arguments const

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:42 UTC 2020


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


Change subject: gprs_bssgp_pcu: make osmo_sockaddr local/sgsn arguments const
......................................................................

gprs_bssgp_pcu: make osmo_sockaddr local/sgsn arguments const

Change-Id: I40e51de300533cfcbb3c9f90a0858a489a3c2b6b
Depends: I0df6a00ac1830bd64a10b9336b827e113fa772bb
---
M src/gprs_bssgp_pcu.cpp
M src/gprs_bssgp_pcu.h
2 files changed, 8 insertions(+), 8 deletions(-)



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

diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index c57c3df..83a741d 100644
--- a/src/gprs_bssgp_pcu.cpp
+++ b/src/gprs_bssgp_pcu.cpp
@@ -921,10 +921,10 @@
 }
 
 
-int gprs_nsvc_create_and_connect(
-		struct gprs_rlcmac_bts *bts,
-		struct osmo_sockaddr *local, struct osmo_sockaddr *sgsn,
-		uint16_t nsei, uint16_t nsvci)
+int gprs_nsvc_create_and_connect(struct gprs_rlcmac_bts *bts,
+				 const struct osmo_sockaddr *local,
+				 const struct osmo_sockaddr *sgsn,
+				 uint16_t nsei, uint16_t nsvci)
 {
 	struct gprs_ns2_vc *nsvc;
 	struct gprs_ns2_vc_bind *bind;
diff --git a/src/gprs_bssgp_pcu.h b/src/gprs_bssgp_pcu.h
index e6614d6..078f488 100644
--- a/src/gprs_bssgp_pcu.h
+++ b/src/gprs_bssgp_pcu.h
@@ -81,10 +81,10 @@
 		uint16_t mcc, uint16_t mnc, bool mnc_3_digits,
 		uint16_t lac, uint16_t rac, uint16_t cell_id);
 
-int gprs_nsvc_create_and_connect(
-		struct gprs_rlcmac_bts *bts,
-		struct osmo_sockaddr *local, struct osmo_sockaddr *sgsn,
-		uint16_t nsei, uint16_t nsvci);
+int gprs_nsvc_create_and_connect(struct gprs_rlcmac_bts *bts,
+				 const struct osmo_sockaddr *local,
+				 const struct osmo_sockaddr *sgsn,
+				 uint16_t nsei, uint16_t nsvci);
 
 int gprs_ns_prim_cb(struct osmo_prim_hdr *oph, void *ctx);
 int gprs_gp_send_cb(void *ctx, struct msgb *msg);

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I40e51de300533cfcbb3c9f90a0858a489a3c2b6b
Gerrit-Change-Number: 20516
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/f82040f4/attachment.htm>


More information about the gerrit-log mailing list