diff options
Diffstat (limited to 'src/shared/udev-util.h')
-rw-r--r-- | src/shared/udev-util.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/udev-util.h b/src/shared/udev-util.h index bff8f5fbf7..27677af876 100644 --- a/src/shared/udev-util.h +++ b/src/shared/udev-util.h @@ -24,11 +24,11 @@ #include "udev.h" #include "util.h" -define_trivial_cleanup_func(struct udev*, udev_unref) -define_trivial_cleanup_func(struct udev_device*, udev_device_unref) -define_trivial_cleanup_func(struct udev_enumerate*, udev_enumerate_unref) -define_trivial_cleanup_func(struct udev_event*, udev_event_unref) -define_trivial_cleanup_func(struct udev_rules*, udev_rules_unref) +DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev*, udev_unref); +DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_device*, udev_device_unref); +DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_enumerate*, udev_enumerate_unref); +DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_event*, udev_event_unref); +DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_rules*, udev_rules_unref); #define _cleanup_udev_unref_ _cleanup_(udev_unrefp) #define _cleanup_udev_device_unref_ _cleanup_(udev_device_unrefp) |