diff options
Diffstat (limited to 'src/shared/fdset.h')
-rw-r--r-- | src/shared/fdset.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/fdset.h b/src/shared/fdset.h index 1a26005183..6277e464d8 100644 --- a/src/shared/fdset.h +++ b/src/shared/fdset.h @@ -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) |