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:
John Baldwin 2000-03-27 13:26:45 +00:00
parent a6eb0df247
commit 266e33fd51

View File

@ -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. */