From: Mike Yuan Date: Sat, 15 Jun 2024 10:55:45 +0000 (+0200) Subject: selinux-util: make type of cleanup func void X-Git-Tag: v257-rc1~1134^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F33352%2Fhead;p=thirdparty%2Fsystemd.git 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(). --- diff --git a/src/shared/selinux-util.h b/src/shared/selinux-util.h index 038456fcca6..3a2cf0d8507 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