selinux-util: make type of cleanup func void

Follow-up for 6623c64a02

Return values are pointless for _cleanup_ functions, and
this matches what we do in DEFINE_TRIVIAL_CLEANUP_FUNC().
This commit is contained in:
Mike Yuan
2024-06-15 13:05:50 +02:00
parent c89d1e425a
commit 2128085d0c
+1 -2
View File
@@ -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