diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-03-20 20:36:09 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 5a265e9aca07f4d8e2e6f33dc822e635b0cc36b9 (patch) | |
tree | ba1fe030ac744db3203cb78babdc53ef49cbf542 /src/basic/exec-util.c | |
parent | 59b298150232d73634d70c24509c0bf14672cc24 (diff) |
coccinelle: make use of DIV_ROUND_UP() wherever appropriate
Let's use our macros where we can
Diffstat (limited to 'src/basic/exec-util.c')
-rw-r--r-- | src/basic/exec-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c index f8ac40671..73330c278 100644 --- a/src/basic/exec-util.c +++ b/src/basic/exec-util.c @@ -116,7 +116,7 @@ static int do_execute( * default action terminating the process, and turn on alarm(). */ if (timeout != USEC_INFINITY) - alarm((timeout + USEC_PER_SEC - 1) / USEC_PER_SEC); + alarm(DIV_ROUND_UP(timeout, USEC_PER_SEC)); STRV_FOREACH(path, paths) { _cleanup_free_ char *t = NULL; |