diff from Kent R. Spillner <kspillner at acm org>;
no objections came up when showing this diff on tech@
-/* $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 $ */
/*
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);