summaryrefslogtreecommitdiff
path: root/aserver
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2001-02-13 12:53:19 +0000
committerJaroslav Kysela <perex@perex.cz>2001-02-13 12:53:19 +0000
commit6ea4260c1c2100ced5ad69d34330a331bd53b887 (patch)
tree067c63c7c6608f27b51e2502be1311642c6eb53f /aserver
parentdb53ac9b41593646606087074ac01703a50b18ac (diff)
Added the safe version of the list_for_each function.
Diffstat (limited to 'aserver')
-rw-r--r--aserver/aserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aserver/aserver.c b/aserver/aserver.c
index e15221a2..dcf8d0a9 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, *next;
+ struct list_head *item;
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, next, &inet_pendings) {
+ list_for_each(item, &inet_pendings) {
pdata = list_entry(item, inet_pending_t, list);
if (pdata->cookie == cookie)
goto found;