pespin has uploaded this change for review.

View Change

constify bsc_conn_by_bsub() ptr param

Change-Id: I44b1397e7771c803efdca6bf59750ca5568df365
---
M include/osmocom/bsc/osmo_bsc_sigtran.h
M src/osmo-bsc/osmo_bsc_sigtran.c
2 files changed, 11 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/22/31822/1
diff --git a/include/osmocom/bsc/osmo_bsc_sigtran.h b/include/osmocom/bsc/osmo_bsc_sigtran.h
index df37cf4..9cc2cfc 100644
--- a/include/osmocom/bsc/osmo_bsc_sigtran.h
+++ b/include/osmocom/bsc/osmo_bsc_sigtran.h
@@ -26,7 +26,7 @@
/* Allocate resources to make a new connection oriented sigtran connection
* (not the connection ittself!) */
enum bsc_con osmo_bsc_sigtran_new_conn(struct gsm_subscriber_connection *conn, struct bsc_msc_data *msc);
-struct gsm_subscriber_connection *bsc_conn_by_bsub(struct bsc_subscr *bsub);
+struct gsm_subscriber_connection *bsc_conn_by_bsub(const struct bsc_subscr *bsub);

/* Open a new connection oriented sigtran connection */
int osmo_bsc_sigtran_open_conn(struct gsm_subscriber_connection *conn, struct msgb *msg);
diff --git a/src/osmo-bsc/osmo_bsc_sigtran.c b/src/osmo-bsc/osmo_bsc_sigtran.c
index 04c2e99..88ee01c 100644
--- a/src/osmo-bsc/osmo_bsc_sigtran.c
+++ b/src/osmo-bsc/osmo_bsc_sigtran.c
@@ -59,7 +59,7 @@
return NULL;
}

-struct gsm_subscriber_connection *bsc_conn_by_bsub(struct bsc_subscr *bsub)
+struct gsm_subscriber_connection *bsc_conn_by_bsub(const struct bsc_subscr *bsub)
{
struct gsm_subscriber_connection *conn;
if (!bsub)

To view, visit change 31822. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I44b1397e7771c803efdca6bf59750ca5568df365
Gerrit-Change-Number: 31822
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-MessageType: newchange