add const to char* to pacify warnings for string litral to char* conversion

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-02 00:59:12 +09:00
parent b98890a4b7
commit 7721463a35
+2 -2
View File
@@ -802,14 +802,14 @@ new_symbols(parser_state *p, node *a)
/* (:call a op) */
static node*
call_uni_op(parser_state *p, node *recv, char *m)
call_uni_op(parser_state *p, node *recv, const char *m)
{
return new_call(p, recv, intern_cstr(m), 0);
}
/* (:call a op b) */
static node*
call_bin_op(parser_state *p, node *recv, char *m, node *arg1)
call_bin_op(parser_state *p, node *recv, const char *m, node *arg1)
{
return new_call(p, recv, intern_cstr(m), list1(list1(arg1)));
}