summaryrefslogtreecommitdiffstats
path: root/manpage.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 /manpage.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 'manpage.c')
-rw-r--r--manpage.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/manpage.c b/manpage.c
index 8122b5e4..24778f39 100644
--- a/manpage.c
+++ b/manpage.c
@@ -90,7 +90,7 @@ main(int argc, char *argv[])
search.deftype = TYPE_Nm | TYPE_Nd;
manpath_parse(&paths, conf_file, defpaths, auxpaths);
- ch = mansearch(&search, &paths, argc, argv, NULL, &res, &sz);
+ ch = mansearch(&search, &paths, argc, argv, "Nd", &res, &sz);
manpath_free(&paths);
if (0 == ch)
@@ -107,9 +107,8 @@ main(int argc, char *argv[])
for (i = 0; i < sz; i++) {
printf("%6zu %s: %s\n",
- i + 1, res[i].names, res[i].desc);
+ i + 1, res[i].names, res[i].output);
free(res[i].names);
- free(res[i].desc);
free(res[i].output);
}