From 6ea4260c1c2100ced5ad69d34330a331bd53b887 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 13 Feb 2001 12:53:19 +0000 Subject: Added the safe version of the list_for_each function. --- aserver/aserver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aserver') 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; -- cgit v1.2.1