mirror of https://github.com/mkerrisk/man-pages
slist.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
c5127de6ff
commit
1297239d41
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue