From 9641824e740781b963ef60c15aa75d23554f7aa9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 7 Apr 2014 19:43:38 +0200 Subject: fix some warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cerberus.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/cerberus.c') diff --git a/src/cerberus.c b/src/cerberus.c index 7bea9fc..49fbe66 100644 --- a/src/cerberus.c +++ b/src/cerberus.c @@ -181,16 +181,17 @@ void do_login(int argc, char** argv) /* Only root may bypass authentication */ - if (skip_auth && getuid()) + if (skip_auth) { - printf("%s: only root by use the -f option\n", *argv); - sleep(ERROR_SLEEP); - _exit(2); + if (getuid()) + { + printf("%s: only root by use the -f option\n", *argv); + sleep(ERROR_SLEEP); + _exit(2); + } } - - /* Print ant we want a passphrase, if -f has not been used */ - if (skip_auth == 0) + else { printf("Passphrase: "); fflush(stdout); -- cgit v1.2.3-70-g09d2