]> code.delx.au - pulseaudio/commitdiff
hook-list: make use of PA_LLIST_FOREACH
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2009 22:55:31 +0000 (00:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2009 22:55:31 +0000 (00:55 +0200)
src/pulsecore/hook-list.c

index a00116d1ffda312bc773b859b1367c9f4ab68d7f..d9b9917d40f9916efa674dd21a688da30792caa3 100644 (file)
@@ -97,7 +97,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;