lynxis lazus has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-sgsn/+/40959?usp=email )

 (

2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted 
one.
 )Change subject: iu_rnc: Constify function params
......................................................................

iu_rnc: Constify function params

Change-Id: I288bc21d24aa5abd3d9bd97e796ac9f8590290bd
---
M include/osmocom/sgsn/iu_rnc.h
M src/sgsn/iu_rnc.c
2 files changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved
  lynxis lazus: Looks good to me, approved




diff --git a/include/osmocom/sgsn/iu_rnc.h b/include/osmocom/sgsn/iu_rnc.h
index 345ee9c..895e922 100644
--- a/include/osmocom/sgsn/iu_rnc.h
+++ b/include/osmocom/sgsn/iu_rnc.h
@@ -32,4 +32,4 @@

 struct ranap_iu_rnc *iu_rnc_register(struct osmo_rnc_id *rnc_id,
                                     const struct osmo_routing_area_id *rai,
-                                    struct osmo_sccp_addr *addr);
+                                    const struct osmo_sccp_addr *addr);
diff --git a/src/sgsn/iu_rnc.c b/src/sgsn/iu_rnc.c
index 0854f99..970f628 100644
--- a/src/sgsn/iu_rnc.c
+++ b/src/sgsn/iu_rnc.c
@@ -43,7 +43,7 @@
 #include <osmocom/sgsn/sccp.h>
 #include <osmocom/sgsn/sgsn.h>

-static struct ranap_iu_rnc *iu_rnc_alloc(const struct osmo_rnc_id *rnc_id, 
struct osmo_sccp_addr *addr)
+static struct ranap_iu_rnc *iu_rnc_alloc(const struct osmo_rnc_id *rnc_id, 
const struct osmo_sccp_addr *addr)
 {
        struct ranap_iu_rnc *rnc = talloc_zero(sgsn, struct ranap_iu_rnc);
        OSMO_ASSERT(rnc);
@@ -98,7 +98,7 @@
        return NULL;
 }

-static bool same_sccp_addr(struct osmo_sccp_addr *a, struct osmo_sccp_addr *b)
+static bool same_sccp_addr(const struct osmo_sccp_addr *a, const struct 
osmo_sccp_addr *b)
 {
        char buf[256];
        osmo_strlcpy(buf, osmo_sccp_addr_dump(a), sizeof(buf));
@@ -125,7 +125,7 @@

 struct ranap_iu_rnc *iu_rnc_register(struct osmo_rnc_id *rnc_id,
                                     const struct osmo_routing_area_id *rai,
-                                    struct osmo_sccp_addr *addr)
+                                    const struct osmo_sccp_addr *addr)
 {
        struct ranap_iu_rnc *rnc;
        struct ranap_iu_rnc *old_rnc;

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

Gerrit-MessageType: merged
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I288bc21d24aa5abd3d9bd97e796ac9f8590290bd
Gerrit-Change-Number: 40959
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: lynxis lazus <[email protected]>

Reply via email to