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

[ruby] const in erb_protected_method_call

This commit is contained in:
Witold Filipczyk 2022-01-30 19:36:06 +01:00
parent 06a2c8a167
commit 53afb21279

View File

@ -25,7 +25,7 @@
/* We need to catch and handle errors because, otherwise, Ruby will kill us. */ /* We need to catch and handle errors because, otherwise, Ruby will kill us. */
struct erb_protect_info { struct erb_protect_info {
char *name; const char *name;
int argc; int argc;
VALUE *args; VALUE *args;
}; };
@ -44,7 +44,7 @@ do_erb_protected_method_call(VALUE data)
} }
static VALUE static VALUE
erb_protected_method_call(char *name, int argc, VALUE *args, int *error) erb_protected_method_call(const char *name, int argc, VALUE *args, int *error)
{ {
struct erb_protect_info info = { name, argc, args }; struct erb_protect_info info = { name, argc, args };