From 21f0b54eb34acc6fbea8198e71dcf02f1e551301 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 30 Jan 2022 18:32:02 +0100 Subject: [PATCH] [scripting] cosnt in report_scripting_error --- src/scripting/python/core.c | 2 +- src/scripting/scripting.c | 2 +- src/scripting/scripting.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;