summaryrefslogtreecommitdiff
path: root/thread.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 /thread.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 'thread.c')
-rw-r--r--thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index 7bcf64741c..5c1deb7448 100644
--- a/thread.c
+++ b/thread.c
@@ -1471,7 +1471,7 @@ rb_thread_safe_level(VALUE thread)
static VALUE
rb_thread_inspect(VALUE thread)
{
- char *cname = rb_obj_classname(thread);
+ const char *cname = rb_obj_classname(thread);
rb_thread_t *th;
const char *status;
VALUE str;
@@ -2491,7 +2491,7 @@ VALUE
rb_mutex_unlock(VALUE self)
{
mutex_t *mutex;
- char *err = NULL;
+ const char *err = NULL;
GetMutexPtr(self, mutex);
native_mutex_lock(&mutex->lock);
@@ -3039,7 +3039,7 @@ thread_set_trace_func_m(VALUE obj, VALUE trace)
return trace;
}
-static char *
+static const char *
get_event_name(rb_event_flag_t event)
{
switch (event) {