summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common/cut.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-10-17 19:12:17 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-10-17 19:12:17 +0000
commitfc91c16f0414890757292add34af8bee286c868f (patch)
treecae7aadb7c382702828e9adfc895f1537896aa47 /usr.bin/vi/common/cut.h
parent8728eaba8fdf623ad4a0e57bddd7a3237166a42a (diff)
Use queue macros instead of directly accessing fields. ok pat@ "put it
in" deraadt@
Diffstat (limited to 'usr.bin/vi/common/cut.h')
-rw-r--r--usr.bin/vi/common/cut.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/vi/common/cut.h b/usr.bin/vi/common/cut.h
index 1202004193b..8ea31d58040 100644
--- a/usr.bin/vi/common/cut.h
+++ b/usr.bin/vi/common/cut.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cut.h,v 1.4 2002/01/31 11:10:39 hugh Exp $ */
+/* $OpenBSD: cut.h,v 1.5 2005/10/17 19:12:16 otto Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -67,8 +67,7 @@ struct _text { /* Text: a linked list of lines. */
#define CBNAME(sp, cbp, nch) { \
CHAR_T L__name; \
L__name = isupper(nch) ? tolower(nch) : (nch); \
- for (cbp = sp->gp->cutq.lh_first; \
- cbp != NULL; cbp = cbp->q.le_next) \
+ LIST_FOREACH((cbp), &(sp)->gp->cutq, q) \
if (cbp->name == L__name) \
break; \
}