X-Git-Url: https://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/ac40fd9eb9d1980c90dc009d526a23ead1ec0f76..refs/tags/upstream/0.63.0:/authpasswd.c diff --git a/authpasswd.c b/authpasswd.c index e94e1ba..be922ec 100644 --- a/authpasswd.c +++ b/authpasswd.c @@ -18,7 +18,7 @@ #include #include "auth.h" -static const char rcsid[]="$Id: authpasswd.c,v 1.2 2006/06/01 10:47:32 mrsam Exp $"; +static const char rcsid[]="$Id: authpasswd.c,v 1.3 2009/06/27 15:51:48 mrsam Exp $"; /* ** Where possible, we turn off echo when entering the password. ** We set up a signal handler to catch signals and restore the echo @@ -29,15 +29,12 @@ static const char rcsid[]="$Id: authpasswd.c,v 1.2 2006/06/01 10:47:32 mrsam Exp static struct termios tios; static int have_tios; -static RETSIGTYPE sighandler(int signum) +static void sighandler(int signum) { if (write(1, "\n", 1) < 0) ; /* Ignore gcc warning */ tcsetattr(0, TCSANOW, &tios); _exit(0); -#if RETSIGTYPE != void - return (0); -#endif } #endif