aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mansearch.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-11-22 12:01:46 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-11-22 12:01:46 +0000
commit948cfc767fc01b4caf82976949dceb3581462b3e (patch)
treee239f4302dd84fd27131c98bbb60c827f476374c /mansearch.h
parent8653551cb202b50a668483cb155c4c8272808ae8 (diff)
downloadmandoc-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 'mansearch.h')
-rw-r--r--mansearch.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/mansearch.h b/mansearch.h
index cc4f364f..355873f8 100644
--- a/mansearch.h
+++ b/mansearch.h
@@ -1,4 +1,4 @@
-/* $Id: mansearch.h,v 1.28 2017/04/17 20:05:08 schwarze Exp $ */
+/* $Id: mansearch.h,v 1.29 2018/11/22 12:01:46 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -93,7 +93,6 @@ struct manpage {
char *names; /* a list of names with sections */
char *output; /* user-defined additional output */
size_t ipath; /* number of the manpath */
- uint64_t bits; /* name type mask */
int sec; /* section number, 10 means invalid */
enum form form;
};