summaryrefslogtreecommitdiff
path: root/src/perl/perl-signals.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-10 21:12:39 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-10 21:12:39 +0000
commitebdaa110f1e7dd48483d0f0ebc606c13b2e44ba3 (patch)
treecb0f4278017ec6fb6be5ad255f12611dd2da0c8a /src/perl/perl-signals.c
parent6c97f13cadcdb9714c331a671aee86ce260aeb34 (diff)
downloadirssi-ebdaa110f1e7dd48483d0f0ebc606c13b2e44ba3.zip
bugfixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1101 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/perl-signals.c')
-rw-r--r--src/perl/perl-signals.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/perl/perl-signals.c b/src/perl/perl-signals.c
index 73a4da40..16e07444 100644
--- a/src/perl/perl-signals.c
+++ b/src/perl/perl-signals.c
@@ -16,7 +16,6 @@ typedef struct {
} PERL_SIGNAL_REC;
typedef struct {
- int signal_id;
char *signal;
char *args[7];
} PERL_SIGNAL_ARGS_REC;
@@ -53,7 +52,7 @@ static void perl_call_signal(const char *func, int signal_id,
gconstpointer *args)
{
dSP;
- int retcount, ret;
+ int retcount;
PERL_SIGNAL_ARGS_REC *rec;
HV *stash;
@@ -347,8 +346,9 @@ void perl_signals_init(void)
perl_signal_args_partial =
g_slist_append(perl_signal_args_partial, rec);
} else {
+ int signal_id = signal_get_uniq_id(rec->signal);
g_hash_table_insert(perl_signal_args_hash,
- GINT_TO_POINTER(rec->signal_id),
+ GINT_TO_POINTER(signal_id),
rec);
}
}