]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/hook-list.c
Remove unnecessary #includes
[pulseaudio] / src / pulsecore / hook-list.c
index a00116d1ffda312bc773b859b1367c9f4ab68d7f..00981be3031d682a664965bc9a085b29e4025fd6 100644 (file)
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#include <pulse/xmalloc.h>
+
 #include <pulsecore/macro.h>
 
 #include "hook-list.h"
@@ -97,7 +99,7 @@ pa_hook_result_t pa_hook_fire(pa_hook *hook, void *data) {
 
     hook->n_firing ++;
 
-    for (slot = hook->slots; slot; slot = slot->next) {
+    PA_LLIST_FOREACH(slot, hook->slots) {
         if (slot->dead)
             continue;