X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=getpass.c;h=3c19ba7c832fb9f3825c3b98c6d29e7cd5024351;hb=49268a95ee78bc179fd3439b3f06e9a06c993c92;hp=8fe34e5d9f70d237bc418f0a42a580738838df40;hpb=5bbed890029e6b965a32317763ef33c9b3178550;p=~andy%2Ffetchmail diff --git a/getpass.c b/getpass.c index 8fe34e5d..3c19ba7c 100644 --- a/getpass.c +++ b/getpass.c @@ -61,8 +61,7 @@ static void disable_tty_echo(void); 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) @@ -78,7 +77,6 @@ char *prompt; FILE *fi; static char pbuf[INPUT_BUF_SIZE]; SIGHANDLERTYPE sig = 0; /* initialization pacifies -Wall */ - RETSIGTYPE sigint_handler(int); int istty = isatty(0); @@ -190,6 +188,7 @@ static void restore_tty_state(void) static RETSIGTYPE sigint_handler(int signum) { + (void)signum; restore_tty_state(); report(stderr, GT_("\nCaught SIGINT... bailing out.\n")); exit(1);