summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree
diff options
context:
space:
mode:
authorben <ben@FreeBSD.org>2000-12-29 18:04:54 +0000
committerben <ben@FreeBSD.org>2000-12-29 18:04:54 +0000
commitaa1051802050e4b3f8e101d6829c1b31e1e67226 (patch)
tree9e119180eea063f2ade5bbb129acceefc2a4f2bb /usr.sbin/mtree
parent829d1eb6e8edc31d7a31355b8caa9ce50fa31471 (diff)
downloadFreeBSD-src-aa1051802050e4b3f8e101d6829c1b31e1e67226.zip
FreeBSD-src-aa1051802050e4b3f8e101d6829c1b31e1e67226.tar.gz
Convert to use the <sys/queue.h> macros rather than fiddling with the queue
structure internals. Reviewed by: markm
Diffstat (limited to 'usr.sbin/mtree')
-rw-r--r--usr.sbin/mtree/excludes.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud