diff --git a/sys/sys/queue.h b/sys/sys/queue.h index 34fc51033399..87a62a0e7781 100644 --- a/sys/sys/queue.h +++ b/sys/sys/queue.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)queue.h 8.5 (Berkeley) 8/20/94 - * $Id: queue.h,v 1.22 1998/06/24 20:51:09 phk Exp $ + * $Id: queue.h,v 1.23 1999/01/06 20:03:11 n_hibma Exp $ */ #ifndef _SYS_QUEUE_H_ @@ -218,7 +218,7 @@ struct { \ (head)->stqh_last = &(head)->stqh_first; \ } while (0) -#define STAILQ_REMOVE_HEAD_QUEUE(head, elm, field) do { \ +#define STAILQ_REMOVE_HEAD_UNTIL(head, elm, field) do { \ if (((head)->stqh_first = (elm)->field.stqe_next) == NULL) \ (head)->stqh_last = &(head)->stqh_first; \ } while (0)