aboutsummaryrefslogtreecommitdiffstats
path: root/getpass.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-12-13 05:11:05 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-12-13 05:11:05 +0000
commitdf9d522301cbc3e73e9816485f7deb744ae6f373 (patch)
tree92dce208df4c7f5203446d6eb5c1febe906f357b /getpass.c
parent8dcde6bdc0a17bd0bffb1f2436325038a0fa9103 (diff)
downloadfetchmail-df9d522301cbc3e73e9816485f7deb744ae6f373.tar.gz
fetchmail-df9d522301cbc3e73e9816485f7deb744ae6f373.tar.bz2
fetchmail-df9d522301cbc3e73e9816485f7deb744ae6f373.zip
Ready to ship 6-2-0.
svn path=/trunk/; revision=3776
Diffstat (limited to 'getpass.c')
-rw-r--r--getpass.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/getpass.c b/getpass.c
index 6e4b93cf..c34f7686 100644
--- a/getpass.c
+++ b/getpass.c
@@ -77,7 +77,7 @@ char *prompt;
register int c;
FILE *fi;
static char pbuf[INPUT_BUF_SIZE];
- RETSIGTYPE (*sig)(int) = 0; /* initialization pacifies -Wall */
+ SIGHANDLERTYPE sig = 0; /* initialization pacifies -Wall */
RETSIGTYPE sigint_handler(int);
int istty = isatty(0);
@@ -103,7 +103,7 @@ char *prompt;
/* now that we have the current tty state, we can catch SIGINT and
exit gracefully */
- sig = signal(SIGINT, sigint_handler);
+ sig = set_signal_handler(SIGINT, sigint_handler);
/* turn off echo on the tty */
disable_tty_echo();
@@ -129,7 +129,7 @@ char *prompt;
restore_tty_state();
/* restore previous state of SIGINT */
- signal(SIGINT, sig);
+ set_signal_handler(SIGINT, sig);
}
if (fi != stdin)
fclose(fi); /* not checking should be safe, file mode was "r" */