]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
service: drop _pure_ decorator on static function
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Sep 2017 14:39:46 +0000 (16:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Oct 2017 10:58:42 +0000 (12:58 +0200)
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.

src/core/service.c

index 82d9bb585bff97e0ef592e6b1cf7026437400a01..7880c6b446ce06a9ffcc4ca17d026ab471d1e0bc 100644 (file)
@@ -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