From 149f7f0cf7f52b7a745b98d66b238a60fae2aeed Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 10 Feb 1996 20:01:06 +0000 Subject: [PATCH] rid of some warnings git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@244 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/popper/popper.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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;