aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitc2dd68816c9e05ae3f31a96307caa577ff4db3dd (patch)
treeecd4eaa940f486430e1df4191069df42070c6a5b /apropos.c
parent8bb474af93ace25f45da1da08a3c358cf9684b6d (diff)
downloadmandoc-c2dd68816c9e05ae3f31a96307caa577ff4db3dd.tar.gz
mandoc-c2dd68816c9e05ae3f31a96307caa577ff4db3dd.tar.zst
mandoc-c2dd68816c9e05ae3f31a96307caa577ff4db3dd.zip
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.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/apropos.c b/apropos.c
index c629257e..c9fabe26 100644
--- a/apropos.c
+++ b/apropos.c
@@ -1,4 +1,4 @@
-/* $Id: apropos.c,v 1.36 2013/12/31 03:41:14 schwarze Exp $ */
+/* $Id: apropos.c,v 1.37 2014/01/06 03:02:46 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);
}