diff --git a/share/man/man3/queue.3 b/share/man/man3/queue.3 index 6d2aba623575..f7636a068c81 100644 --- a/share/man/man3/queue.3 +++ b/share/man/man3/queue.3 @@ -74,7 +74,7 @@ .Fn TAILQ_HEAD "HEADNAME" "TYPE" .Fn TAILQ_INIT "TAILQ_HEAD *head" .Fn TAILQ_INSERT_AFTER "TAILQ_HEAD *head" "TYPE *listelm" "TYPE *elm" "TAILQ_ENTRY NAME" -.Fn TAILQ_INSERT_BEFORE "TAILQ_HEAD *head" "TYPE *listelm" "TYPE *elm" "TAILQ_ENTRY NAME" +.Fn TAILQ_INSERT_BEFORE "TYPE *listelm" "TYPE *elm" "TAILQ_ENTRY NAME" .Fn TAILQ_INSERT_HEAD "TAILQ_HEAD *head" "TYPE *elm" "TAILQ_ENTRY NAME" .Fn TAILQ_INSERT_TAIL "TAILQ_HEAD *head" "TYPE *elm" "TAILQ_ENTRY NAME" .Fn TAILQ_REMOVE "TAILQ_HEAD *head" "TYPE *elm" "TAILQ_ENTRY NAME" @@ -371,7 +371,7 @@ n2 = malloc(sizeof(struct entry)); /* Insert after. */ TAILQ_INSERT_AFTER(&head, n1, n2, entries); n3 = malloc(sizeof(struct entry)); /* Insert before. */ -TAILQ_INSERT_BEFORE(&head, n2, n3, entries); +TAILQ_INSERT_BEFORE(n2, n3, entries); TAILQ_REMOVE(&head, n2, entries); /* Deletion. */ free(n2); diff --git a/sys/sys/queue.h b/sys/sys/queue.h index 1fb7b9553708..a56ae0dd1dbc 100644 --- a/sys/sys/queue.h +++ b/sys/sys/queue.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)queue.h 8.4 (Berkeley) 1/4/94 - * $Id: queue.h,v 1.4 1995/12/03 13:45:34 bde Exp $ + * $Id: queue.h,v 1.5 1996/01/29 03:20:41 gibbs Exp $ */ #ifndef _SYS_QUEUE_H_ @@ -166,7 +166,7 @@ struct { \ (elm)->field.tqe_prev = &(listelm)->field.tqe_next; \ } -#define TAILQ_INSERT_BEFORE(head, listelm, elm, field) { \ +#define TAILQ_INSERT_BEFORE(listelm, elm, field) { \ (elm)->field.tqe_prev = (listelm)->field.tqe_prev; \ (elm)->field.tqe_next = (listelm); \ *(listelm)->field.tqe_prev = (elm); \