diff --git a/appl/popper/popper.c b/appl/popper/popper.c index b31e079eb..a1abe60fd 100644 --- a/appl/popper/popper.c +++ b/appl/popper/popper.c @@ -9,6 +9,10 @@ static char copyright[] = "Copyright (c) 1990 Regents of the University of Calif static char SccsId[] = "@(#)@(#)popper.c 2.1 2.1 3/18/91"; #endif /* not lint */ +#ifdef HAVE_CONFIG_H +#include +#endif /* HAVE_CONFIG_H */ + #include #include #include @@ -19,14 +23,14 @@ extern state_table * pop_get_command(); int hangup = FALSE ; -static int +static RETSIGTYPE catchSIGHUP() { hangup = TRUE ; /* This should not be a problem on BSD systems */ - signal(SIGHUP, (void *)catchSIGHUP); - signal(SIGPIPE, (void *)catchSIGHUP); + signal(SIGHUP, catchSIGHUP); + signal(SIGPIPE, catchSIGHUP); } int pop_timeout = POP_TIMEOUT;