From: Lennart Poettering Date: Fri, 29 Sep 2017 14:39:46 +0000 (+0200) Subject: service: drop _pure_ decorator on static function X-Git-Tag: v235~41^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=019be286767fae799eac20d77cc3982e0622729e;p=platform%2Fupstream%2Fsystemd.git service: drop _pure_ decorator on static function The compiler should be good enough to figure this out on its own if this is a static function, and it makes control_pid_good() an outlier anyway, and decorators like this tend to bitrot. Hence, to keep things simple and automatic, let's just drop the decorator. --- diff --git a/src/core/service.c b/src/core/service.c index 82d9bb5..7880c6b 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1422,7 +1422,7 @@ static int main_pid_good(Service *s) { return -EAGAIN; } -_pure_ static int control_pid_good(Service *s) { +static int control_pid_good(Service *s) { assert(s); /* Returns 0 if the control PID is dead, > 0 if it is good. We never actually return < 0 here, but in order to