diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-06 03:02:46 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-06 03:02:46 +0000 |
commit | bde6b6e5fe1b391dac65511440cb88c4501b17c6 (patch) | |
tree | 17ffada1819d058aff1e45486983b8f68a6a2238 /manpage.c | |
parent | 0a8353f869e8d8e9772ef1e8e227f19a628994ad (diff) | |
download | mandoc-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); } |