pulsecore: Use PA_IDXSET_FOREACH wherever applicable.

Signed-off-by: Harsh Prateek Bora <harsh.bora@linaro.org>
This commit is contained in:
Harsh Prateek Bora 2012-05-29 17:58:12 +05:30 committed by David Henningsson
parent f38c1e9bf9
commit 13c7a55599
5 changed files with 16 additions and 16 deletions

View file

@ -416,7 +416,7 @@ size_t pa_scache_total_size(pa_core *c) {
if (!c->scache || !pa_idxset_size(c->scache))
return 0;
for (e = pa_idxset_first(c->scache, &idx); e; e = pa_idxset_next(c->scache, &idx))
PA_IDXSET_FOREACH(e, c->scache, idx)
if (e->memchunk.memblock)
sum += e->memchunk.length;
@ -435,7 +435,7 @@ void pa_scache_unload_unused(pa_core *c) {
time(&now);
for (e = pa_idxset_first(c->scache, &idx); e; e = pa_idxset_next(c->scache, &idx)) {
PA_IDXSET_FOREACH(e, c->scache, idx) {
if (!e->lazy || !e->memchunk.memblock)
continue;