From 06a2c8a167636a4e6e241b0a8941863290cf384f Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 30 Jan 2022 19:27:23 +0100 Subject: [PATCH] [ruby] const in alert_ruby_error --- src/scripting/ruby/core.c | 2 +- src/scripting/ruby/core.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripting/ruby/core.c b/src/scripting/ruby/core.c index e9344e78..a1426e71 100644 --- a/src/scripting/ruby/core.c +++ b/src/scripting/ruby/core.c @@ -35,7 +35,7 @@ VALUE erb_module; /* Error reporting. */ void -alert_ruby_error(struct session *ses, char *msg) +alert_ruby_error(struct session *ses, const char *msg) { report_scripting_error(&ruby_scripting_module, ses, msg); } diff --git a/src/scripting/ruby/core.h b/src/scripting/ruby/core.h index 55152390..187fab55 100644 --- a/src/scripting/ruby/core.h +++ b/src/scripting/ruby/core.h @@ -27,7 +27,7 @@ struct session; extern VALUE erb_module; -void alert_ruby_error(struct session *ses, char *msg); +void alert_ruby_error(struct session *ses, const char *msg); void erb_report_error(struct session *ses, int state); void init_ruby(struct module *module);