summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-01 15:14:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-01 15:14:23 +0000
commit5c547fd3e240509579cf737df843859289ba2f9b (patch)
tree1142570c6219d53d32005695bba326da5e468d80 /process.c
parent969f4d4c68ecb9dd03bfc1fa8b12c19ea08046fe (diff)
* signal.c (ruby_signal_name): adjust to the prototype.
* process.c (pst_inspect): ditto. * ext/etc/etc.c (Init_etc): typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index 6d8cd25d2c..24b75855a7 100644
--- a/process.c
+++ b/process.c
@@ -160,7 +160,7 @@ pst_inspect(st)
str = rb_str_new2(buf);
if (WIFSTOPPED(status)) {
int stopsig = WSTOPSIG(status);
- char *signame = ruby_signal_name(stopsig);
+ const char *signame = ruby_signal_name(stopsig);
if (signame) {
snprintf(buf, sizeof(buf), ",stopped(SIG%s=%d)", signame, stopsig);
}
@@ -171,7 +171,7 @@ pst_inspect(st)
}
if (WIFSIGNALED(status)) {
int termsig = WTERMSIG(status);
- char *signame = ruby_signal_name(termsig);
+ const char *signame = ruby_signal_name(termsig);
if (signame) {
snprintf(buf, sizeof(buf), ",signaled(SIG%s=%d)", signame, termsig);
}