]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Use DEFINE_TRIVIAL_CLEANUP_FUNC() to define strv_freep() 37428/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 May 2025 13:45:15 +0000 (15:45 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 May 2025 14:22:54 +0000 (16:22 +0200)
src/boot/util.h

index 2145b6e2589b643d2bd0cb146a220941cf1b94a2..6b227680b450a5f7bfb87763a09706caabe7b578 100644 (file)
@@ -162,9 +162,7 @@ bool is_ascii(const char16_t *f);
 
 char16_t **strv_free(char16_t **l);
 
-static inline void strv_freep(char16_t ***p) {
-        strv_free(*p);
-}
+DEFINE_TRIVIAL_CLEANUP_FUNC(char16_t**, strv_free);
 
 #define _cleanup_strv_free_ _cleanup_(strv_freep)