diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-11-22 12:01:46 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-11-22 12:01:46 +0000 |
commit | 948cfc767fc01b4caf82976949dceb3581462b3e (patch) | |
tree | e239f4302dd84fd27131c98bbb60c827f476374c /main.c | |
parent | 8653551cb202b50a668483cb155c4c8272808ae8 (diff) | |
download | mandoc-948cfc767fc01b4caf82976949dceb3581462b3e.tar.gz mandoc-948cfc767fc01b4caf82976949dceb3581462b3e.tar.zst mandoc-948cfc767fc01b4caf82976949dceb3581462b3e.zip |
In apropos(1) output, stop sorting .Nm search results by name
priorities (bits). The obscure feature wasn't documented and merely
confused people - for example Edward Tomasz Napierala <trasz at
FreeBSD>, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227408.
Smaller patch provided by Yuri Pankov <yuripv at FreeBSD>, but i'm
also retiring the now unused "bits" member from struct manpage.
Simplification is good.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.309 2018/11/22 11:30:23 schwarze Exp $ */ +/* $Id: main.c,v 1.310 2018/11/22 12:01:46 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2012, 2014-2018 Ingo Schwarze <schwarze@openbsd.org> @@ -405,7 +405,6 @@ main(int argc, char *argv[]) res[sz].names = NULL; res[sz].output = NULL; res[sz].ipath = SIZE_MAX; - res[sz].bits = 0; res[sz].sec = 10; res[sz].form = FORM_SRC; sz++; @@ -754,7 +753,6 @@ found: page->names = NULL; page->output = NULL; page->ipath = ipath; - page->bits = NAME_FILE & NAME_MASK; page->sec = (*sec >= '1' && *sec <= '9') ? *sec - '1' + 1 : 10; page->form = form; return 1; |