1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2003-10-01 15:14:23 +00:00
parent 969f4d4c68
commit 5c547fd3e2
4 changed files with 12 additions and 4 deletions

View file

@ -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]

View file

@ -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",

View file

@ -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);
}

View file

@ -191,7 +191,7 @@ signo2signm(no)
return 0;
}
char *
const char *
ruby_signal_name(no)
int no;
{