diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2013-07-03 15:05:22 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2013-07-03 15:05:22 +0000 |
commit | 4fc2c3dc932e7d2162715af1f9545a168cabacd8 (patch) | |
tree | 0d3f8eefc643cd7e885857de412cf60d1bff9f43 /sys | |
parent | ec2932f691175a43c04cee99373225d090c65ed9 (diff) |
Fix CIRCLEQ_REPLACE. From Michael Piszczek (mpiszczek_at_ddn_dot_com).
guenther@ otto@ ok
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/queue.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h index befa7e5e738..f8f09bf12e7 100644 --- a/sys/sys/queue.h +++ b/sys/sys/queue.h @@ -1,4 +1,4 @@ -/* $OpenBSD: queue.h,v 1.37 2013/05/03 18:24:01 tedu Exp $ */ +/* $OpenBSD: queue.h,v 1.38 2013/07/03 15:05:21 fgsch Exp $ */ /* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */ /* @@ -633,12 +633,12 @@ struct { \ #define CIRCLEQ_REPLACE(head, elm, elm2, field) do { \ if (((elm2)->field.cqe_next = (elm)->field.cqe_next) == \ CIRCLEQ_END(head)) \ - (head).cqh_last = (elm2); \ + (head)->cqh_last = (elm2); \ else \ (elm2)->field.cqe_next->field.cqe_prev = (elm2); \ if (((elm2)->field.cqe_prev = (elm)->field.cqe_prev) == \ CIRCLEQ_END(head)) \ - (head).cqh_first = (elm2); \ + (head)->cqh_first = (elm2); \ else \ (elm2)->field.cqe_prev->field.cqe_next = (elm2); \ _Q_INVALIDATE((elm)->field.cqe_prev); \ |