summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-31 09:28:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-31 09:28:20 +0000
commit075530a6850ebf899e8874d7675fd900577c9554 (patch)
tree45dd63e7b9262c43ebd8ef19b0057a150d1e3eb5 /proc.c
parent1b039e2a922db417e7fd7e5175476497fb083e7e (diff)
* suppress warnings with -Wwrite-string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index d1562588e7..f0934a5a4d 100644
--- a/proc.c
+++ b/proc.c
@@ -661,7 +661,7 @@ proc_to_s(VALUE self)
{
VALUE str = 0;
rb_proc_t *proc;
- char *cname = rb_obj_classname(self);
+ const char *cname = rb_obj_classname(self);
rb_iseq_t *iseq;
const char *is_lambda;
@@ -1417,7 +1417,7 @@ method_inspect(VALUE method)
struct METHOD *data;
VALUE str;
const char *s;
- char *sharp = "#";
+ const char *sharp = "#";
Data_Get_Struct(method, struct METHOD, data);
str = rb_str_buf_new2("#<");