mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
ask-password: minor shortening
This commit is contained in:
@@ -234,10 +234,7 @@ static int run(int argc, char *argv[]) {
|
||||
if (r <= 0)
|
||||
return r;
|
||||
|
||||
if (arg_timeout > 0)
|
||||
timeout = usec_add(now(CLOCK_MONOTONIC), arg_timeout);
|
||||
else
|
||||
timeout = 0;
|
||||
timeout = arg_timeout > 0 ? usec_add(now(CLOCK_MONOTONIC), arg_timeout) : 0;
|
||||
|
||||
AskPasswordRequest req = {
|
||||
.message = arg_message,
|
||||
|
||||
Reference in New Issue
Block a user