documentation/2963: mistake in queue man page ( circleq example ) >Number: 2963
>Category: documentation
>Synopsis: mistake in queue man page ( circleq example )
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 07 13:23:28 MST 2002
>Closed-Date:
>Last-Modified:
>Originator: Hector Paterno
>Release: 3.1
>Organization:
DSN
>Environment:
System : OpenBSD 3.1
Architecture: OpenBSD.i386
Machine : i386
>Description:
there is a mistake in the queue man page, CIRCULAR QUEUE
EXAMPLE :
CIRCLEQ_HEAD(circleq, entry) head;
struct circleq *headp; /* Circular queue head. */
struct entry {
...
CIRCLEQ_ENTRY entries; /*Circular queue. */
...
} *n1, *n2, *np;
Should be :
CIRCLEQ_HEAD(circleq, entry) head;
struct circleq *headp; /* Circular queue head. */
struct entry {
...
CIRCLEQ_ENTRY(entry) entries; /*Circular queue. */
...
} *n1, *n2, *np;
diff like :
-CIRCLEQ_ENTRY entries; /*Circular queue. */
+CIRCLEQ_ENTRY(entry) entries; /*Circular queue. */
>How-To-Repeat:
Test the example given in the man page.
>Fix:
diff like :
-CIRCLEQ_ENTRY entries; /*Circular queue. */
+CIRCLEQ_ENTRY(entry) entries; /*Circular queue. */
>Release-Note:
Received on Thu Nov 7 16:40:53 2002
This archive was generated by hypermail 2.1.8
: Wed Aug 23 2006 - 13:29:37 EDT
|