#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
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