summaryrefslogtreecommitdiffstats
path: root/src/shared/bus-polkit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-08-09 10:48:47 +0200
committerMike Yuan <me@yhndnzj.com>2023-08-09 18:01:04 +0200
commitd1e8e8b5ae3533a0a24006029872a98f2b9283fa (patch)
treecc6dbb55b69230cf559084fbead2b49a8b685732 /src/shared/bus-polkit.c
parentMerge pull request #28728 from yuwata/fstab-no (diff)
downloadsystemd-d1e8e8b5ae3533a0a24006029872a98f2b9283fa.tar.xz
systemd-d1e8e8b5ae3533a0a24006029872a98f2b9283fa.zip
tree-wide: drop _pure_ + _const_ from local, static functions
This is supposed to be a help for compilers to apply optimizations on functions where they can't determine whether they are const/pure on their own. For static, local functions the compiler can do this on its own easily however, hence the decoration with pure/const is just noise. Let's drop it, and let the compiler to its thing better. (Use it for exported functions, since compilers can't 'reach-over' into other modules to determine if they are pure, except if LTO is used)
Diffstat (limited to 'src/shared/bus-polkit.c')
-rw-r--r--src/shared/bus-polkit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bus-polkit.c b/src/shared/bus-polkit.c
index b7f7c2b47a..41a88b5c70 100644
--- a/src/shared/bus-polkit.c
+++ b/src/shared/bus-polkit.c
@@ -363,7 +363,7 @@ static int async_polkit_callback(sd_bus_message *reply, void *userdata, sd_bus_e
return r;
}
-_pure_ static int async_polkit_query_check_action(
+static int async_polkit_query_check_action(
AsyncPolkitQuery *q,
const char *action,
const char **details,