static void restore_tty_state(void);
static RETSIGTYPE sigint_handler(int);
-char *fm_getpassword(prompt)
-char *prompt;
+char *fm_getpassword(char *prompt)
{
#if !(defined(HAVE_TCSETATTR) || defined(HAVE_TERMIO_H) || defined(HAVE_STTY))
#if defined(HAVE_GETPASS)
FILE *fi;
static char pbuf[INPUT_BUF_SIZE];
SIGHANDLERTYPE sig = 0; /* initialization pacifies -Wall */
- RETSIGTYPE sigint_handler(int);
int istty = isatty(0);
static RETSIGTYPE sigint_handler(int signum)
{
+ (void)signum;
restore_tty_state();
report(stderr, GT_("\nCaught SIGINT... bailing out.\n"));
exit(1);