1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[scripting] cosnt in report_scripting_error

This commit is contained in:
Witold Filipczyk 2022-01-30 18:32:02 +01:00
parent 32dd119820
commit 21f0b54eb3
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;