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 12:55:45 +02:00
parent c89d1e425a
commit 2128085d0c
No known key found for this signature in database
GPG key ID: 417471C0A40F58B3

View file

@ -14,9 +14,8 @@
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(char*, freecon, NULL); DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(char*, freecon, NULL);
#else #else
static inline char* freeconp(char **p) { static inline void freeconp(char **p) {
assert(*p == NULL); assert(*p == NULL);
return NULL;
} }
#endif #endif