filter: Switch from linked lists to arrays.
[paraslash.git] / audiod_command.c
index 875e455..0428bea 100644 (file)
@@ -294,9 +294,10 @@ static struct filter_node *find_filter_node(int slot_num, int format, int filter
                        continue;
                /* success */
                j = 1;
-               list_for_each_entry(fn, &s->fc->filters, node)
+               FOR_EACH_FILTER_NODE(fn, s->fc, j) {
                        if (filternum <= 0 || j++ == filternum)
                                break;
+               }
                return fn;
        }
        return NULL;