diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-10-17 19:12:17 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-10-17 19:12:17 +0000 |
commit | fc91c16f0414890757292add34af8bee286c868f (patch) | |
tree | cae7aadb7c382702828e9adfc895f1537896aa47 /usr.bin/vi/common/exf.c | |
parent | 8728eaba8fdf623ad4a0e57bddd7a3237166a42a (diff) |
Use queue macros instead of directly accessing fields. ok pat@ "put it
in" deraadt@
Diffstat (limited to 'usr.bin/vi/common/exf.c')
-rw-r--r-- | usr.bin/vi/common/exf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/vi/common/exf.c b/usr.bin/vi/common/exf.c index 94046cc8392..065ac0d8af9 100644 --- a/usr.bin/vi/common/exf.c +++ b/usr.bin/vi/common/exf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exf.c,v 1.20 2003/12/31 18:18:22 millert Exp $ */ +/* $OpenBSD: exf.c,v 1.21 2005/10/17 19:12:16 otto Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -79,10 +79,9 @@ file_add(sp, name) */ gp = sp->gp; if (name != NULL) - for (frp = gp->frefq.cqh_first; - frp != (FREF *)&gp->frefq; frp = frp->q.cqe_next) { + CIRCLEQ_FOREACH(frp, &gp->frefq, q) { if (frp->name == NULL) { - tfrp = frp->q.cqe_next; + tfrp = CIRCLEQ_NEXT(frp, q); CIRCLEQ_REMOVE(&gp->frefq, frp, q); if (frp->name != NULL) free(frp->name); |