8ed18b6667
scheme while I'm at it.
66 lines
2.0 KiB
Plaintext
66 lines
2.0 KiB
Plaintext
$OpenBSD: patch-readline_readline_c,v 1.1 2001/05/14 16:42:54 millert Exp $
|
|
--- readline/readline.c.orig Fri Feb 24 14:20:03 1995
|
|
+++ readline/readline.c Mon May 14 10:33:03 2001
|
|
@@ -610,22 +610,22 @@ rl_signal_handler (sig)
|
|
|
|
rl_set_signals ()
|
|
{
|
|
- old_int = (SigHandler *)signal (SIGINT, rl_signal_handler);
|
|
+ old_int = (SigHandler *)signal (SIGINT, (void *)rl_signal_handler);
|
|
if (old_int == (SigHandler *)SIG_IGN)
|
|
signal (SIGINT, SIG_IGN);
|
|
|
|
- old_alrm = (SigHandler *)signal (SIGALRM, rl_signal_handler);
|
|
+ old_alrm = (SigHandler *)signal (SIGALRM, (void *)rl_signal_handler);
|
|
if (old_alrm == (SigHandler *)SIG_IGN)
|
|
signal (SIGALRM, SIG_IGN);
|
|
|
|
#if defined (SIGTSTP)
|
|
- old_tstp = (SigHandler *)signal (SIGTSTP, rl_signal_handler);
|
|
+ old_tstp = (SigHandler *)signal (SIGTSTP, (void *)rl_signal_handler);
|
|
if (old_tstp == (SigHandler *)SIG_IGN)
|
|
signal (SIGTSTP, SIG_IGN);
|
|
#endif
|
|
#if defined (SIGTTOU)
|
|
- old_ttou = (SigHandler *)signal (SIGTTOU, rl_signal_handler);
|
|
- old_ttin = (SigHandler *)signal (SIGTTIN, rl_signal_handler);
|
|
+ old_ttou = (SigHandler *)signal (SIGTTOU, (void *)rl_signal_handler);
|
|
+ old_ttin = (SigHandler *)signal (SIGTTIN, (void *)rl_signal_handler);
|
|
|
|
if (old_tstp == (SigHandler *)SIG_IGN)
|
|
{
|
|
@@ -635,26 +635,26 @@ rl_set_signals ()
|
|
#endif
|
|
|
|
#if defined (SIGWINCH)
|
|
- old_sigwinch = (SigHandler *)signal (SIGWINCH, rl_handle_sigwinch);
|
|
+ old_sigwinch = (SigHandler *)signal (SIGWINCH, (void *)rl_handle_sigwinch);
|
|
#endif
|
|
}
|
|
|
|
rl_clear_signals ()
|
|
{
|
|
- signal (SIGINT, old_int);
|
|
- signal (SIGALRM, old_alrm);
|
|
+ signal (SIGINT, (void *)old_int);
|
|
+ signal (SIGALRM, (void *)old_alrm);
|
|
|
|
#if defined (SIGTSTP)
|
|
- signal (SIGTSTP, old_tstp);
|
|
+ signal (SIGTSTP, (void *)old_tstp);
|
|
#endif
|
|
|
|
#if defined (SIGTTOU)
|
|
- signal (SIGTTOU, old_ttou);
|
|
- signal (SIGTTIN, old_ttin);
|
|
+ signal (SIGTTOU, (void *)old_ttou);
|
|
+ signal (SIGTTIN, (void *)old_ttin);
|
|
#endif
|
|
|
|
#if defined (SIGWINCH)
|
|
- signal (SIGWINCH, old_sigwinch);
|
|
+ signal (SIGWINCH, (void *)old_sigwinch);
|
|
#endif
|
|
}
|
|
#endif /* HANDLE_SIGNALS */
|