diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-12-13 05:11:05 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-12-13 05:11:05 +0000 |
commit | df9d522301cbc3e73e9816485f7deb744ae6f373 (patch) | |
tree | 92dce208df4c7f5203446d6eb5c1febe906f357b /getpass.c | |
parent | 8dcde6bdc0a17bd0bffb1f2436325038a0fa9103 (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" */ |