diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-03-20 20:36:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-03-20 20:59:02 +0100 |
commit | be6b0c21654e1c587cb942d464281bcc89ef4ddf (patch) | |
tree | 64ae8adf2baaabbcd146402e098c0760a0e9c7ac /src/basic/exec-util.c | |
parent | 3ceae1bc14d2da3fc1fe4753d6657759012256dc (diff) | |
download | systemd-be6b0c21654e1c587cb942d464281bcc89ef4ddf.tar.gz |
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 e0057a7572..49fb95e382 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; |