Re: LIST_REMOVE problem

2008-11-08 Thread Sergey Matveychuk
Joerg Sonnenberger wrote: On Fri, Nov 07, 2008 at 10:07:17PM +0300, Sergey Matveychuk wrote: If we'll take a look at code, LIST_REMOVE don't change a head pointer if you remove the first element: It does via le_priv. OK, thanks. I see now. I'll try to find out why my code don't work this w

Re: LIST_REMOVE problem

2008-11-07 Thread Joerg Sonnenberger
On Fri, Nov 07, 2008 at 10:07:17PM +0300, Sergey Matveychuk wrote: > If we'll take a look at code, LIST_REMOVE don't change a head pointer if > you remove the first element: It does via le_priv. Joerg ___ freebsd-hackers@freebsd.org mailing list http:

LIST_REMOVE problem

2008-11-07 Thread Sergey Matveychuk
Hi! I wonder how this example from queue(3) works: while (!LIST_EMPTY(&head)) {/* List Deletion. */ n1 = LIST_FIRST(&head); LIST_REMOVE(n1, entries); free(n1); } If we'll take a look at code, LIST_REMOVE don't change a head pointer if