[MERGED] osmo-msc[master]: Constify msc_subscr_conn_is_accepted() parameter

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

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Feb 8 09:28:52 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: Constify msc_subscr_conn_is_accepted() parameter
......................................................................


Constify msc_subscr_conn_is_accepted() parameter

Related: OS#2864
Change-Id: I8af50a8847a5b438cf2ef660399d4c8bbac86a71
---
M include/osmocom/msc/osmo_msc.h
M src/libmsc/subscr_conn.c
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  daniel: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/osmocom/msc/osmo_msc.h b/include/osmocom/msc/osmo_msc.h
index bf455c3..2fa8c46 100644
--- a/include/osmocom/msc/osmo_msc.h
+++ b/include/osmocom/msc/osmo_msc.h
@@ -79,7 +79,7 @@
 		     uint8_t cause, uint8_t *rr_cause);
 
 void msc_subscr_conn_init(void);
-bool msc_subscr_conn_is_accepted(struct gsm_subscriber_connection *conn);
+bool msc_subscr_conn_is_accepted(const struct gsm_subscriber_connection *conn);
 void msc_subscr_conn_communicating(struct gsm_subscriber_connection *conn);
 void msc_subscr_conn_close(struct gsm_subscriber_connection *conn,
 			   uint32_t cause);
diff --git a/src/libmsc/subscr_conn.c b/src/libmsc/subscr_conn.c
index 0fb4f54..124e46b 100644
--- a/src/libmsc/subscr_conn.c
+++ b/src/libmsc/subscr_conn.c
@@ -333,7 +333,7 @@
 	return 0;
 }
 
-bool msc_subscr_conn_is_accepted(struct gsm_subscriber_connection *conn)
+bool msc_subscr_conn_is_accepted(const struct gsm_subscriber_connection *conn)
 {
 	if (!conn)
 		return false;

-- 
To view, visit https://gerrit.osmocom.org/6295
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8af50a8847a5b438cf2ef660399d4c8bbac86a71
Gerrit-PatchSet: 4
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>



More information about the gerrit-log mailing list