slist.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-12-23 14:24:43 +01:00
parent c5127de6ff
commit 1297239d41
1 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ without interfering with the traversal.
struct entry { struct entry {
int data; int data;
SLIST_ENTRY(entry) entries; /* Singly linked List */ SLIST_ENTRY(entry) entries; /* Singly linked list */
}; };
SLIST_HEAD(slisthead, entry); SLIST_HEAD(slisthead, entry);
@ -314,7 +314,7 @@ int
main(void) main(void)
{ {
struct entry *n1, *n2, *n3, *np; struct entry *n1, *n2, *n3, *np;
struct slisthead head; /* Singly linked List struct slisthead head; /* Singly linked list
head */ head */
SLIST_INIT(&head); /* Initialize the queue */ SLIST_INIT(&head); /* Initialize the queue */