diff --git a/src/scripting/python/core.c b/src/scripting/python/core.c index d23fedf09..19c8aa1d6 100644 --- a/src/scripting/python/core.c +++ b/src/scripting/python/core.c @@ -38,7 +38,7 @@ PyObject *python_hooks = NULL; void alert_python_error(void) { - char *msg = "(no traceback available)"; + const char *msg = "(no traceback available)"; PyObject *err_type = NULL, *err_value = NULL, *err_traceback = NULL; PyObject *tb_module = NULL; PyObject *msg_list = NULL; diff --git a/src/scripting/scripting.c b/src/scripting/scripting.c index b19fa83dc..931ab7db9 100644 --- a/src/scripting/scripting.c +++ b/src/scripting/scripting.c @@ -34,7 +34,7 @@ #if defined(CONFIG_SCRIPTING_RUBY) || defined(CONFIG_SCRIPTING_SPIDERMONKEY) || defined(CONFIG_SCRIPTING_PYTHON) void report_scripting_error(struct module *module, struct session *ses, - char *msg) + const char *msg) { struct terminal *term; struct string string; diff --git a/src/scripting/scripting.h b/src/scripting/scripting.h index 422441c1b..36a99b1dd 100644 --- a/src/scripting/scripting.h +++ b/src/scripting/scripting.h @@ -12,7 +12,7 @@ struct session; void report_scripting_error(struct module *module, struct session *ses, - char *msg); + const char *msg); extern struct module scripting_module;