diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-21 19:51:33 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-21 19:51:33 +0000 |
commit | b2f9a23e0d8d6adf4e9f77170644813a768c44de (patch) | |
tree | 46a2c2f6ba75eb11b6f6757ca4eacbacc8b7043c /usr.bin | |
parent | 507683897a3ae6cb8b0744f4936ccd96dced76ba (diff) |
use getlist() instead of hand-rolled equivalent, no functional change;
diff from Kent R. Spillner <kspillner at acm org>;
no objections came up when showing this diff on tech@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/man/config.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/man/config.c b/usr.bin/man/config.c index eae81f42a0d..a4053a5c4df 100644 --- a/usr.bin/man/config.c +++ b/usr.bin/man/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.9 2009/10/27 23:59:40 deraadt Exp $ */ +/* $OpenBSD: config.c,v 1.10 2014/07/21 19:51:32 schwarze Exp $ */ /* $NetBSD: config.c,v 1.7 1995/09/28 06:05:21 tls Exp $ */ /* @@ -92,8 +92,7 @@ config(char *fname) continue; *t = '\0'; - for (tp = TAILQ_FIRST(&head); /* Find any matching tag. */ - tp != NULL && strcmp(p, tp->s); tp = TAILQ_NEXT(tp, q)); + tp = getlist(p); /* Find any matching tag. */ if (tp == NULL) /* Create a new tag. */ tp = addlist(p); |