From 3cc36c2b3d1486e504b2301641f67ef18ced5030 Mon Sep 17 00:00:00 2001 From: schwarze Date: Fri, 5 Aug 2016 17:20:30 +0000 Subject: [PATCH] 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(-) 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; -- 2.20.1