diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-28 23:08:32 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-09-29 12:28:21 +0900 |
commit | ecea250d77fc1126e11c0e8cb12977420c979d9f (patch) | |
tree | 1c6d80dfcbad0cba40d67e31d55595e7168e2ca1 /src/core/scope.c | |
parent | 17373589f3c5b06639e4d2d98a7715496be6e551 (diff) | |
download | systemd-ecea250d77fc1126e11c0e8cb12977420c979d9f.tar.gz |
core: fix the return type for xxx_running_timeout() functions
otherwise we might return an invalid value, since `usec_t` is 64-bit,
whereas `int` might not be.
Follow-up to: 5918a93
Fixes: #20872
Diffstat (limited to 'src/core/scope.c')
-rw-r--r-- | src/core/scope.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/scope.c b/src/core/scope.c index 8fdba646aa..74f16233c5 100644 --- a/src/core/scope.c +++ b/src/core/scope.c @@ -52,7 +52,7 @@ static void scope_done(Unit *u) { s->timer_event_source = sd_event_source_disable_unref(s->timer_event_source); } -static int scope_running_timeout(Scope *s) { +static usec_t scope_running_timeout(Scope *s) { usec_t delta = 0; assert(s); |