summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog8
-rw-r--r--ext/etc/etc.c2
-rw-r--r--process.c4
-rw-r--r--signal.c2
4 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index df03ae4..b44fadc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Thu Oct 2 00:14:16 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (ruby_signal_name): adjust to the prototype.
+
+ * process.c (pst_inspect): ditto.
+
+ * ext/etc/etc.c (Init_etc): typo.
+
Wed Oct 1 20:49:41 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (heaps): manage slots and limits together. [ruby-dev:21453]
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index 3d4052e..ac52eb6 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -366,7 +366,7 @@ Init_etc()
rb_define_module_function(mEtc, "group", etc_group, 0);
rb_define_module_function(mEtc, "setgrent", etc_setgrent, 0);
rb_define_module_function(mEtc, "endgrent", etc_endgrent, 0);
- rb_define_module_function(mEtc, "getgrent", etc_g,etgrent, 0);
+ rb_define_module_function(mEtc, "getgrent", etc_getgrent, 0);
sPasswd = rb_struct_define("Passwd",
"name", "passwd", "uid", "gid",
diff --git a/process.c b/process.c
index 6d8cd25..24b7585 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);
}
diff --git a/signal.c b/signal.c
index bcf7b1d..628fdc3 100644
--- a/signal.c
+++ b/signal.c
@@ -191,7 +191,7 @@ signo2signm(no)
return 0;
}
-char *
+const char *
ruby_signal_name(no)
int no;
{