From 384fb48f7f1a3eb4a55261d8b2ec0f5a2de53ec1 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 5 Aug 2016 17:20:31 +0000 Subject: fix a typo that prevented names from .Dt from getting priority over names from .Sh NAME; no dire consequences on OpenBSD since we no longer have MLINKS for mdoc(7) pages --- usr.bin/mandoc/mandocdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/mandoc/mandocdb.c b/usr.bin/mandoc/mandocdb.c index 3022c0f75e5..1d7565b011c 100644 --- a/usr.bin/mandoc/mandocdb.c +++ b/usr.bin/mandoc/mandocdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mandocdb.c,v 1.174 2016/08/01 20:46:33 schwarze Exp $ */ +/* $OpenBSD: mandocdb.c,v 1.175 2016/08/05 17:20:30 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011-2016 Ingo Schwarze @@ -1662,7 +1662,7 @@ parse_mdoc_Nm(struct mpage *mpage, const struct roff_meta *meta, if ( ! (mpage->name_head_done || n->child == NULL || n->child->string == NULL || strcasecmp(n->child->string, meta->title))) { - putkey(mpage, n->child->string, ROFFT_HEAD); + putkey(mpage, n->child->string, NAME_HEAD); mpage->name_head_done = 1; } return 0; -- cgit v1.2.3