From: Yu Watanabe Date: Sat, 18 Jan 2025 19:09:52 +0000 (+0900) Subject: selinux-util: drop _cleanup_context_free_ X-Git-Tag: v258-rc1~1552^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=892b734c1cdaf1c8986cd86e65046f07c602dedc;p=thirdparty%2Fsystemd.git selinux-util: drop _cleanup_context_free_ It is used at only one place, not necessary. --- diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c index ff49e219a0b..27ed339ff89 100644 --- a/src/shared/selinux-util.c +++ b/src/shared/selinux-util.c @@ -31,7 +31,6 @@ #if HAVE_SELINUX DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(context_t, context_free, NULL); -#define _cleanup_context_free_ _cleanup_(context_freep) typedef enum Initialized { UNINITIALIZED, @@ -471,7 +470,7 @@ int mac_selinux_get_our_label(char **ret) { int mac_selinux_get_child_mls_label(int socket_fd, const char *exe, const char *exec_label, char **ret_label) { #if HAVE_SELINUX _cleanup_freecon_ char *mycon = NULL, *peercon = NULL, *fcon = NULL; - _cleanup_context_free_ context_t pcon = NULL, bcon = NULL; + _cleanup_(context_freep) context_t pcon = NULL, bcon = NULL; const char *range = NULL, *bcon_str = NULL; security_class_t sclass; int r;