From c2dd68816c9e05ae3f31a96307caa577ff4db3dd 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 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'apropos.c') 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 * Copyright (c) 2013 Ingo Schwarze @@ -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 v1.2.3