Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / authpasswd.c
index e94e1ba..be922ec 100644 (file)
@@ -18,7 +18,7 @@
 #include       <signal.h>
 #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