]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/strv.h
macro: rework how we define cleanup macros
[thirdparty/systemd.git] / src / shared / strv.h
index 4cd3865e1db5238b50d19fe099109d0c496c3561..92696b02fa7709792678d2d480b3f7f017e92684 100644 (file)
@@ -34,6 +34,8 @@ static inline void strv_freep(char ***l) {
         strv_free(*l);
 }
 
+#define _cleanup_strv_free_ _cleanup_(strv_freep)
+
 char **strv_copy(char * const *l) _malloc_;
 unsigned strv_length(char * const *l);