diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-18 22:28:51 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-18 22:28:51 +0100 |
commit | 1a57451434b9941ea5497dba9017b715826608fd (patch) | |
tree | 4aa3e6d7aea29d91012e2822a78ccf743b060716 /src/passphrase.c | |
parent | m (diff) | |
download | libpassphrase-1a57451434b9941ea5497dba9017b715826608fd.tar.gz libpassphrase-1a57451434b9941ea5497dba9017b715826608fd.tar.bz2 libpassphrase-1a57451434b9941ea5497dba9017b715826608fd.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/passphrase.c')
-rw-r--r-- | src/passphrase.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/passphrase.c b/src/passphrase.c index 4b6af86..9482ba1 100644 --- a/src/passphrase.c +++ b/src/passphrase.c @@ -16,6 +16,13 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <stdlib.h> +#include <stdio.h> +#include <termios.h> +#include <unistd.h> + +#include "config.h" + #include "passphrase.h" @@ -70,7 +77,7 @@ char* get_passphrase(void) /** * Disable echoing and do anything else to the terminal settnings `get_passphrase` requires */ -void disable_echo() +void disable_echo(void) { struct termios stty; @@ -84,7 +91,7 @@ void disable_echo() /** * Undo the actions of `disable_echo` */ -void reenable_echo() +void reenable_echo(void) { tcsetattr(STDIN_FILENO, TCSAFLUSH, &saved_stty); } |