filter: Switch from linked lists to arrays.
[paraslash.git] / audiod_command.c
index 773bba8..0428bea 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2008 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -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;