chiark / gitweb /
Introduce udev object cleanup functions
[elogind.git] / src / shared / install.c
index 5a780fe915f1a3ad41bbb7e0a20b0a95ed08b7d0..3bced1a5eeb830910b58bc58b74e5475c3f01bc7 100644 (file)
@@ -44,10 +44,8 @@ typedef struct {
         Hashmap *have_installed;
 } InstallContext;
 
-#define _cleanup_lookup_paths_free_ \
-        __attribute__((cleanup(lookup_paths_free)))
-#define _cleanup_install_context_done_ \
-        __attribute__((cleanup(install_context_done)))
+#define _cleanup_lookup_paths_free_ _cleanup_(lookup_paths_free)
+#define _cleanup_install_context_done_ _cleanup_(install_context_done)
 
 static int lookup_paths_init_from_scope(LookupPaths *paths, UnitFileScope scope) {
         assert(paths);