X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Ffdset.h;fp=src%2Fshared%2Ffdset.h;h=6277e464d837a86b9051c4602a4fd8c49c9e2cde;hb=1ca208fb4f93e5869704af1812cbff7130a2fc03;hp=1a26005183df59451fa9c11cd0aa1f4030d5e757;hpb=b506291ff195e03ce793ac925cc2d158f0b452b5;p=elogind.git diff --git a/src/shared/fdset.h b/src/shared/fdset.h index 1a2600518..6277e464d 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)