From ad721d342a0e0883ad86a05de6715d98ecb2a628 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 6 Aug 2020 14:02:24 +1000 Subject: [PATCH] util: fix the example for DEFINE_TRIVIAL_CLEANUP_FUNC Signed-off-by: Peter Hutterer --- src/util-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-mem.h b/src/util-mem.h index 62f5899..c77351a 100644 --- a/src/util-mem.h +++ b/src/util-mem.h @@ -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) \