That's what I get for copy&pasting out of a manual...

The LIST_EMPTY example lacks an opening curly bracket. The other
examples have it, so it's a pretty obvious fix.


Index: queue.3
===================================================================
RCS file: /cvs/src/share/man/man3/queue.3,v
retrieving revision 1.60
diff -u -p -u -p -r1.60 queue.3
--- queue.3     13 Sep 2014 01:09:31 -0000      1.60
+++ queue.3     10 Oct 2015 12:53:54 -0000
@@ -593,7 +593,7 @@ LIST_INSERT_BEFORE(n1, n2, entries);
 LIST_FOREACH(np, &head, entries)
        np-> ...
 
-while (!LIST_EMPTY(&head))             /* Delete. */
+while (!LIST_EMPTY(&head)) {           /* Delete. */
        n1 = LIST_FIRST(&head);
        LIST_REMOVE(n1, entries);
        free(n1);

Reply via email to