From b2244a851a1efbbe01264d010e1a303519c5fecd Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 7 Apr 2014 19:49:43 +0200 Subject: fix warnings and errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cerberus.c | 4 +++- src/quit.c | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cerberus.c b/src/cerberus.c index 49fbe66..a67a9ef 100644 --- a/src/cerberus.c +++ b/src/cerberus.c @@ -240,7 +240,9 @@ void do_login(int argc, char** argv) /* Verify passphrase or other token, if -f has not been used */ - #if AUTH > 0 + #if AUTH == 0 + (void) hostname; + #else initialise_login(hostname, username, read_passphrase); if ((skip_auth == 0) && authenticate_login()) #endif diff --git a/src/quit.c b/src/quit.c index 4ce09dc..196fb60 100644 --- a/src/quit.c +++ b/src/quit.c @@ -35,7 +35,9 @@ void timeout_quit(int signal) { (void) signal; printf("\nTimed out.\n"); + #if AUTH != 0 passphrase_reenable_echo(); + #endif sleep(ERROR_SLEEP); _exit(10); } @@ -50,7 +52,9 @@ void user_quit(int signal) { (void) signal; printf("\n"); + #if AUTH != 0 passphrase_reenable_echo(); + #endif _exit(130); } -- cgit v1.2.3-70-g09d2