mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Correct the definition of CIRCLEQ_EMPTY. It would give a false positive
if the queue contained only one element. Submitted by: Greg Ansley <gja@ansley.com>
This commit is contained in:
parent
81e5344479
commit
69d83be037
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)queue.h 8.5 (Berkeley) 8/20/94
|
||||
* $Id: queue.h,v 1.17 1997/08/25 20:21:54 phk Exp $
|
||||
* $Id: queue.h,v 1.18 1997/09/21 22:09:20 gibbs Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_QUEUE_H_
|
||||
|
|
@ -389,7 +389,7 @@ struct { \
|
|||
/*
|
||||
* Circular queue functions.
|
||||
*/
|
||||
#define CIRCLEQ_EMPTY(head) ((head)->cqh_first == (head)->cqh_last)
|
||||
#define CIRCLEQ_EMPTY(head) ((head)->cqh_first == (void *)(head))
|
||||
|
||||
#define CIRCLEQ_FIRST(head) ((head)->cqh_first)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue