From bde6b6e5fe1b391dac65511440cb88c4501b17c6 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 6 Jan 2014 03:02:46 +0000 Subject: 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. --- apropos.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'apropos.c') 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); } -- cgit