diff options
Diffstat (limited to 'src/lib/notifier.c')
-rw-r--r-- | src/lib/notifier.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/notifier.c b/src/lib/notifier.c index 06f15681..1f600765 100644 --- a/src/lib/notifier.c +++ b/src/lib/notifier.c @@ -25,8 +25,9 @@ #include <ouroboros/errno.h> #include <ouroboros/notifier.h> #include <ouroboros/list.h> +#include <ouroboros/utils.h> +#include <ouroboros/pthread.h> -#include <pthread.h> #include <stdlib.h> struct listener { @@ -75,8 +76,7 @@ void notifier_event(int event, pthread_rwlock_rdlock(¬ifier.lock); - pthread_cleanup_push((void (*) (void *)) pthread_rwlock_unlock, - (void *) ¬ifier.lock) + pthread_cleanup_push(__cleanup_rwlock_unlock, ¬ifier.lock) list_for_each(p, ¬ifier.listeners) { struct listener * l = list_entry(p, struct listener, next); |