summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-07-21 19:51:32 +0000
committerschwarze <schwarze@openbsd.org>2014-07-21 19:51:32 +0000
commita7eaa662c849475e89ddc4a8374e36922a1934f2 (patch)
tree6775bb236c3f73b7c0b9bd90c0ebda575b85907d
parentcast from void * before math; enh@google (diff)
downloadwireguard-openbsd-a7eaa662c849475e89ddc4a8374e36922a1934f2.tar.xz
wireguard-openbsd-a7eaa662c849475e89ddc4a8374e36922a1934f2.zip
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@
-rw-r--r--usr.bin/man/config.c5
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);