summaryrefslogtreecommitdiff
path: root/aserver
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo@alsa-project.org>2001-02-11 15:45:35 +0000
committerAbramo Bagnara <abramo@alsa-project.org>2001-02-11 15:45:35 +0000
commita2d34349619fd652a15219f4239794ef87d78236 (patch)
tree21ec219a5a0971e89045483e9718466e68310cb7 /aserver
parent38033b49dd969cd65a39174cc8554380df30152b (diff)
downloadalsa-lib-a2d34349619fd652a15219f4239794ef87d78236.tar.gz
Completed mixer API. Improved iterators. Renamed control values struct. Rewritten simple elements implementation
Diffstat (limited to 'aserver')
-rw-r--r--aserver/aserver.c8
1 files changed, 4 insertions, 4 deletions
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)