summaryrefslogtreecommitdiff
path: root/src/ask-password
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-03-03 12:56:52 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-03-05 07:10:08 +0900
commit496db330041151138809c8f8579fa91d7897aabe (patch)
tree865ff3fde1989e4bf931da2563dfd3315401f3e9 /src/ask-password
parente6283cbf48a3821d03ec73252620fc1b04bd4588 (diff)
downloadsystemd-496db330041151138809c8f8579fa91d7897aabe.tar.gz
tree-wide: use usec_add() and usec_sub_unsigned()
Diffstat (limited to 'src/ask-password')
-rw-r--r--src/ask-password/ask-password.c2
1 files changed, 1 insertions, 1 deletions
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;