util: fix the example for DEFINE_TRIVIAL_CLEANUP_FUNC

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-08-06 14:02:24 +10:00
parent 9ee00ada3a
commit ad721d342a

View file

@ -41,7 +41,7 @@ static inline void _free_ptr_(void *p) { free(*(void**)p); }
/**
* Use:
* DEFINE_TRIVIAL_CLEANUP_FUNC(struct foo, foo_unref)
* DEFINE_TRIVIAL_CLEANUP_FUNC(struct foo *, foo_unref)
* _cleanup_(foo_unrefp) struct foo *bar;
*/
#define DEFINE_TRIVIAL_CLEANUP_FUNC(_type, _func) \