From 2128085d0c85b9df2d000c551da47dfbc3374b91 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 15 Jun 2024 12:55:45 +0200 Subject: [PATCH] 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(). --- src/shared/selinux-util.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.47.3