From 496db330041151138809c8f8579fa91d7897aabe Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 3 Mar 2021 12:56:52 +0900 Subject: tree-wide: use usec_add() and usec_sub_unsigned() --- src/ask-password/ask-password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ask-password') diff --git a/src/ask-password/ask-password.c b/src/ask-password/ask-password.c index 599ffcdf09..6b89f57e1b 100644 --- a/src/ask-password/ask-password.c +++ b/src/ask-password/ask-password.c @@ -166,7 +166,7 @@ static int run(int argc, char *argv[]) { return r; if (arg_timeout > 0) - timeout = now(CLOCK_MONOTONIC) + arg_timeout; + timeout = usec_add(now(CLOCK_MONOTONIC), arg_timeout); else timeout = 0; -- cgit v1.2.1