1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00:00

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);
#else
static inline char* freeconp(char **p) {
static inline void freeconp(char **p) {
assert(*p == NULL);
return NULL;
}
#endif