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:
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
2 matches
Mail list logo