gprs_ns2: Make reason const

Change-Id: Ia0db18703d9fd137a5c5fe4474e2d76868a9af9d
This commit is contained in:
Daniel Willmann 2020-09-25 15:39:46 +02:00
parent 1301012837
commit 4fb27a80d2
2 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@ char *gprs_ns2_ll_str_c(const void *ctx, struct gprs_ns2_vc *nsvc);
/* vty */ /* vty */
int gprs_ns2_vty_init(struct gprs_ns2_inst *nsi); int gprs_ns2_vty_init(struct gprs_ns2_inst *nsi);
int gprs_ns2_vty_create(); 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);
/*! @} */ /*! @} */

View File

@ -60,7 +60,7 @@ struct ns2_vty_priv {
/* force vc mode if another configuration forces /* force vc mode if another configuration forces
* the vc mode. E.g. SNS configuration */ * the vc mode. E.g. SNS configuration */
bool force_vc_mode; bool force_vc_mode;
char *force_vc_mode_reason; const char *force_vc_mode_reason;
bool frgre; bool frgre;
struct llist_head vtyvc; struct llist_head vtyvc;
@ -826,7 +826,7 @@ void ns2_vty_bind_apply(struct gprs_ns2_vc_bind *bind)
* \param mode * \param mode
* \param reason A description shown to the user when a vty command wants to change the 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; priv.force_vc_mode = force;