summaryrefslogtreecommitdiffstats
path: root/apropos.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-01-06 03:02:46 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-01-06 03:02:46 +0000
commitbde6b6e5fe1b391dac65511440cb88c4501b17c6 (patch)
tree17ffada1819d058aff1e45486983b8f68a6a2238 /apropos.c
parent0a8353f869e8d8e9772ef1e8e227f19a628994ad (diff)
downloadmandoc-bde6b6e5fe1b391dac65511440cb88c4501b17c6.tar.gz
Drop Nd from the mpages table, it is still in the keys table.
This shrinks the database in standard mode by 3%, in -Q mode by 9%, without loss of functionality.
Diffstat (limited to 'apropos.c')
-rw-r--r--apropos.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apropos.c b/apropos.c
index 53db8425..086a842e 100644
--- a/apropos.c
+++ b/apropos.c
@@ -42,7 +42,7 @@ main(int argc, char *argv[])
char *defpaths, *auxpaths;
char *conf_file;
char *progname;
- char *outkey;
+ const char *outkey;
extern char *optarg;
extern int optind;
@@ -59,7 +59,7 @@ main(int argc, char *argv[])
auxpaths = defpaths = NULL;
conf_file = NULL;
- outkey = NULL;
+ outkey = "Nd";
while (-1 != (ch = getopt(argc, argv, "C:M:m:O:S:s:")))
switch (ch) {
@@ -103,11 +103,9 @@ main(int argc, char *argv[])
for (i = 0; i < sz; i++) {
printf("%s - %s\n", res[i].names,
- NULL == outkey ? res[i].desc :
NULL == res[i].output ? "" : res[i].output);
free(res[i].file);
free(res[i].names);
- free(res[i].desc);
free(res[i].output);
}