summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-25 04:58:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-25 04:58:02 +0000
commit45c61f40b23b14e97428206e1b813eb813526e6f (patch)
treebbffa6043ed1e8b6a501d23c3b4874ae3390ddd8 /signal.c
parent369fe1e8394b494c78d56aedfe6b0b809d7d1c10 (diff)
remove unused variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/signal.c b/signal.c
index ac444bbff6..4755f590f0 100644
--- a/signal.c
+++ b/signal.c
@@ -187,6 +187,7 @@ f_kill(argc, argv)
#ifdef USE_CWGUSI
rb_notimplement();
#else
+ int negative = 0;
int sig;
int i;
char *s;
@@ -205,9 +206,7 @@ f_kill(argc, argv)
break;
case T_STRING:
- {
- int negative = 0;
-
+ {
s = RSTRING(argv[0])->ptr;
if (s[0] == '-') {
negative++;
@@ -499,6 +498,7 @@ trap_ensure(arg)
sigsetmask(arg->mask);
#endif
trap_last_mask = arg->mask;
+ return 0;
}
#endif
@@ -553,8 +553,6 @@ void
Init_signal()
{
#ifndef MACOS_UNUSE_SIGNAL
- extern VALUE mKernel;
-
rb_define_global_function("trap", f_trap, -1);
#ifdef POSIX_SIGNAL
posix_signal(SIGINT, sighandle);