Update STAILQ example to use STAILQ_REMOVE_HEAD instead of
TAILQ_REMOVE_HEAD. PR: docs/17590 Submitted by: Benno Rice <benno@netizen.com.au>
This commit is contained in:
parent
a6eb0df247
commit
266e33fd51
@ -564,7 +564,7 @@ STAILQ_FOREACH(np, &head, entries)
|
||||
/* TailQ Deletion. */
|
||||
while (!STAILQ_EMPTY(&head)) {
|
||||
n1 = STAILQ_HEAD(&head);
|
||||
TAILQ_REMOVE_HEAD(&head, entries);
|
||||
STAILQ_REMOVE_HEAD(&head, entries);
|
||||
free(n1);
|
||||
}
|
||||
/* Faster TailQ Deletion. */
|
||||
|
Loading…
Reference in New Issue
Block a user