diff options
author | ben <ben@FreeBSD.org> | 2000-12-29 18:04:54 +0000 |
---|---|---|
committer | ben <ben@FreeBSD.org> | 2000-12-29 18:04:54 +0000 |
commit | aa1051802050e4b3f8e101d6829c1b31e1e67226 (patch) | |
tree | 9e119180eea063f2ade5bbb129acceefc2a4f2bb /usr.sbin/mtree | |
parent | 829d1eb6e8edc31d7a31355b8caa9ce50fa31471 (diff) | |
download | FreeBSD-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.c | 2 |
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; |