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); diff --git a/src/core/service.c b/src/core/service.c index 68485a241f..9299813d45 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -515,7 +515,7 @@ static void service_remove_fd_store(Service *s, const char *name) { } } -static int service_running_timeout(Service *s) { +static usec_t service_running_timeout(Service *s) { usec_t delta = 0; assert(s);