Introduce udev object cleanup functions
This commit is contained in:
+1
-4
@@ -49,8 +49,5 @@ int fdset_iterate(FDSet *s, Iterator *i);
|
||||
#define FDSET_FOREACH(fd, fds, i) \
|
||||
for ((i) = ITERATOR_FIRST, (fd) = fdset_iterate((fds), &(i)); (fd) >= 0; (fd) = fdset_iterate((fds), &(i)))
|
||||
|
||||
static inline void fdset_freep(FDSet **fds) {
|
||||
if (*fds)
|
||||
fdset_free(*fds);
|
||||
}
|
||||
define_trivial_cleanup_func(FDSet*, fdset_free)
|
||||
#define _cleanup_fdset_free_ _cleanup_(fdset_freep)
|
||||
|
||||
Reference in New Issue
Block a user