summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-08 08:49:45 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-08 08:49:45 +0000
commit59ffb8a8463e79fac666923e3bf6ac4555b02dbf (patch)
treeacb0de7f8f755f2739e2f82153807d937b30e97e /eval.c
parent9e55ce10682af724ce4c561f062b105098b42c91 (diff)
downloadruby-59ffb8a8463e79fac666923e3bf6ac4555b02dbf.tar.gz
* intern.h, eval.c (rb_thread_signal_raise): costified.
* signal.c: cosmetic change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index d5048d9465..b98746e517 100644
--- a/eval.c
+++ b/eval.c
@@ -10014,7 +10014,7 @@ static VALUE th_raise_exception;
static NODE *th_raise_node;
static VALUE th_cmd;
static int th_sig, th_safe;
-static char *th_signm;
+static const char *th_signm;
#define RESTORE_NORMAL 1
#define RESTORE_FATAL 2
@@ -12101,7 +12101,7 @@ rb_thread_interrupt(void)
}
void
-rb_thread_signal_raise(char *sig)
+rb_thread_signal_raise(const char *sig)
{
if (sig == 0) return; /* should not happen */
rb_thread_critical = 0;
@@ -12115,7 +12115,7 @@ rb_thread_signal_raise(char *sig)
return;
}
}
- th_signm = sig;
+ th_signm = sig; /* should be literal */
curr_thread = main_thread;
rb_thread_restore_context(curr_thread, RESTORE_SIGNAL);
}