From aa1051802050e4b3f8e101d6829c1b31e1e67226 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 29 Dec 2000 18:04:54 +0000 Subject: Convert to use the macros rather than fiddling with the queue structure internals. Reviewed by: markm --- usr.sbin/mtree/excludes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/mtree') diff --git a/usr.sbin/mtree/excludes.c b/usr.sbin/mtree/excludes.c index 47ab298..624b57a 100644 --- a/usr.sbin/mtree/excludes.c +++ b/usr.sbin/mtree/excludes.c @@ -102,7 +102,7 @@ check_excludes(const char *fname, const char *path) /* fnmatch(3) has a funny return value convention... */ #define MATCH(g, n) (fnmatch((g), (n), FNM_PATHNAME) == 0) - for (e = excludes.lh_first; e != 0; e = e->link.le_next) { + LIST_FOREACH(e, &excludes, link) { if (e->pathname && MATCH(e->glob, path) || MATCH(e->glob, fname)) return 1; -- cgit v1.1