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 | 1ac47583c44066590d7952c4e31d4b736ae27fca (patch) | |
tree | 23faf4a1830eca86e99dde5277bf6777312bb705 /main.c | |
parent | 22da865402a78266a769c6c501dbecec806fc0d3 (diff) | |
download | mandoc-1ac47583c44066590d7952c4e31d4b736ae27fca.tar.gz |
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 | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |