Change in libosmocore[master]: gprs_ns2: Make reason 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/.

daniel gerrit-no-reply at lists.osmocom.org
Fri Sep 25 15:56:23 UTC 2020


daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/20283 )


Change subject: gprs_ns2: Make reason const
......................................................................

gprs_ns2: Make reason const

Change-Id: Ia0db18703d9fd137a5c5fe4474e2d76868a9af9d
---
M include/osmocom/gprs/gprs_ns2.h
M src/gb/gprs_ns2_vty.c
2 files changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/83/20283/1

diff --git a/include/osmocom/gprs/gprs_ns2.h b/include/osmocom/gprs/gprs_ns2.h
index cd2de96..6b88c72 100644
--- a/include/osmocom/gprs/gprs_ns2.h
+++ b/include/osmocom/gprs/gprs_ns2.h
@@ -153,7 +153,7 @@
 /* vty */
 int gprs_ns2_vty_init(struct gprs_ns2_inst *nsi);
 int gprs_ns2_vty_create();
-void gprs_ns2_vty_force_vc_mode(bool force, enum gprs_ns2_vc_mode mode, char *reason);
+void gprs_ns2_vty_force_vc_mode(bool force, enum gprs_ns2_vc_mode mode, const char *reason);
 
 
 /*! @} */
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index ab869c3..9deb3a1 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -60,7 +60,7 @@
 	/* force vc mode if another configuration forces
 	 * the vc mode. E.g. SNS configuration */
 	bool force_vc_mode;
-	char *force_vc_mode_reason;
+	const char *force_vc_mode_reason;
 	bool frgre;
 
 	struct llist_head vtyvc;
@@ -826,7 +826,7 @@
  * \param mode
  * \param reason A description shown to the user when a vty command wants to change the mode.
  */
-void gprs_ns2_vty_force_vc_mode(bool force, enum gprs_ns2_vc_mode mode, char *reason)
+void gprs_ns2_vty_force_vc_mode(bool force, enum gprs_ns2_vc_mode mode, const char *reason)
 {
 	priv.force_vc_mode = force;
 

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ia0db18703d9fd137a5c5fe4474e2d76868a9af9d
Gerrit-Change-Number: 20283
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200925/0ef72321/attachment.htm>


More information about the gerrit-log mailing list