From: Lennart Poettering Date: Wed, 23 Sep 2015 15:04:15 +0000 (+0200) Subject: tty-ask-password: minor modernizations X-Git-Tag: v227~62^2~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16f98462a0bfd10862e73582a8ad70288d39132f;p=thirdparty%2Fsystemd.git tty-ask-password: minor modernizations --- diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c b/src/tty-ask-password-agent/tty-ask-password-agent.c index 3c1346fddb8..b50f114a34c 100644 --- a/src/tty-ask-password-agent/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent/tty-ask-password-agent.c @@ -625,15 +625,14 @@ int main(int argc, char *argv[]) { goto finish; if (arg_console) { - setsid(); - release_terminal(); + (void) setsid(); + (void) release_terminal(); } if (IN_SET(arg_action, ACTION_WATCH, ACTION_WALL)) r = watch_passwords(); else r = show_passwords(); - if (r < 0) log_error_errno(r, "Error: %m");