aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns2_vty.c
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2020-09-25 15:39:46 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2020-09-25 15:39:46 +0200
commit4fb27a80d282a3768f3a6fec92c17b9b5669e3c7 (patch)
tree4e5f44e5ca660b6239403618a6a9038f8eedc287 /src/gb/gprs_ns2_vty.c
parent130101283771741aa1566cb09cbe3d08dcb581f6 (diff)
gprs_ns2: Make reason const
Diffstat (limited to 'src/gb/gprs_ns2_vty.c')
-rw-r--r--src/gb/gprs_ns2_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index ab869c34..9deb3a10 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -60,7 +60,7 @@ struct ns2_vty_priv {
/* 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 @@ void ns2_vty_bind_apply(struct gprs_ns2_vc_bind *bind)
* \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;