#define SIGCLD SIGCHLD
#endif
-#ifndef SIGNAL_CAST
-#define SIGNAL_CAST (RETSIGTYPE (*)(int))
-#endif
-
#ifdef SYSV_TERMIO
/* SYSTEM V TERMIO HANDLING */
static struct termios t;
#endif /* SYSV_TERMIO */
-static void catch_signal(int signum,void (*handler)(int ))
+static void catch_signal(int signum, void (*handler)(int ))
{
#ifdef HAVE_SIGACTION
struct sigaction act;
Signal function to tell us were ^C'ed.
****************************************************************/
-static void gotintr_sig(void)
+static void gotintr_sig(int signum)
{
gotintr = 1;
if (in_fd != -1)
size_t nread;
/* Catch problematic signals */
- catch_signal(SIGINT, SIGNAL_CAST gotintr_sig);
+ catch_signal(SIGINT, gotintr_sig);
/* Try to write to and read from the terminal if we can.
If we can't open the terminal, use stderr and stdin. */
fclose(in);
/* Catch problematic signals */
- catch_signal(SIGINT, SIGNAL_CAST SIG_DFL);
+ catch_signal(SIGINT, SIG_DFL);
if (gotintr) {
printf("Interrupted by signal.\n");