From: schwarze Date: Mon, 21 Jul 2014 19:51:32 +0000 (+0000) Subject: use getlist() instead of hand-rolled equivalent, no functional change; X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a7eaa662c849475e89ddc4a8374e36922a1934f2;p=openbsd use getlist() instead of hand-rolled equivalent, no functional change; diff from Kent R. Spillner ; no objections came up when showing this diff on tech@ --- 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);