summaryrefslogtreecommitdiffstats
path: root/src/shared/selinux-util.h
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-06-15 12:55:45 +0200
committerMike Yuan <me@yhndnzj.com>2024-06-15 13:05:50 +0200
commit2128085d0c85b9df2d000c551da47dfbc3374b91 (patch)
tree601f982ffb3569d5d7743d68b43138be6be2d1d6 /src/shared/selinux-util.h
parentmissing_loop: add missing assertions for fallback values (diff)
downloadsystemd-2128085d0c85b9df2d000c551da47dfbc3374b91.tar.xz
systemd-2128085d0c85b9df2d000c551da47dfbc3374b91.zip
selinux-util: make type of cleanup func void
Follow-up for 6623c64a02fae52103cdc9c80dfcabec9eeaf8ba Return values are pointless for _cleanup_ functions, and this matches what we do in DEFINE_TRIVIAL_CLEANUP_FUNC().
Diffstat (limited to '')
-rw-r--r--src/shared/selinux-util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/selinux-util.h b/src/shared/selinux-util.h
index 038456fcca..3a2cf0d850 100644
--- a/src/shared/selinux-util.h
+++ b/src/shared/selinux-util.h
@@ -14,9 +14,8 @@
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(char*, freecon, NULL);
#else
-static inline char* freeconp(char **p) {
+static inline void freeconp(char **p) {
assert(*p == NULL);
- return NULL;
}
#endif