From a2d34349619fd652a15219f4239794ef87d78236 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Sun, 11 Feb 2001 15:45:35 +0000 Subject: Completed mixer API. Improved iterators. Renamed control values struct. Rewritten simple elements implementation --- aserver/aserver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'aserver') diff --git a/aserver/aserver.c b/aserver/aserver.c index 90f18650..d9663d9c 100644 --- a/aserver/aserver.c +++ b/aserver/aserver.c @@ -753,7 +753,7 @@ int inet_pending_handler(waiter_t *waiter, unsigned short events) inet_pending_t *pdata; client_t *client; uint32_t cookie; - struct list_head *item; + struct list_head *item, *next; int remove = 0; if (events & POLLHUP) remove = 1; @@ -775,7 +775,7 @@ int inet_pending_handler(waiter_t *waiter, unsigned short events) return 0; } - list_for_each(item, &inet_pendings) { + list_for_each(item, next, &inet_pendings) { pdata = list_entry(item, inet_pending_t, list); if (pdata->cookie == cookie) goto found; @@ -937,7 +937,7 @@ int main(int argc, char **argv) }; int c; snd_config_t *conf; - snd_config_iterator_t i; + snd_config_iterator_t i, next; const char *socket = NULL; const char *host = NULL; long port = -1; @@ -970,7 +970,7 @@ int main(int argc, char **argv) ERROR("Missing definition for server %s", srvname); return 1; } - snd_config_foreach(i, conf) { + snd_config_for_each(i, next, conf) { snd_config_t *n = snd_config_iterator_entry(i); const char *id = snd_config_get_id(n); if (strcmp(id, "comment") == 0) -- cgit v1.2.1