=================================================================== RCS file: /cvs/mandoc/Attic/apropos.c,v retrieving revision 1.10 retrieving revision 1.12 diff -u -p -r1.10 -r1.12 --- mandoc/Attic/apropos.c 2011/11/09 22:05:56 1.10 +++ mandoc/Attic/apropos.c 2011/11/13 11:10:27 1.12 @@ -1,4 +1,4 @@ -/* $Id: apropos.c,v 1.10 2011/11/09 22:05:56 kristaps Exp $ */ +/* $Id: apropos.c,v 1.12 2011/11/13 11:10:27 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -21,7 +21,7 @@ #include #include -#include "apropos.h" +#include "apropos_db.h" #include "mandoc.h" static int cmp(const void *, const void *); @@ -33,7 +33,7 @@ static char *progname; int main(int argc, char *argv[]) { - int ch, cs; + int ch; struct opts opts; struct expr *e; extern int optind; @@ -47,9 +47,7 @@ main(int argc, char *argv[]) else ++progname; - cs = 0; - - while (-1 != (ch = getopt(argc, argv, "S:s:I"))) + while (-1 != (ch = getopt(argc, argv, "S:s:"))) switch (ch) { case ('S'): opts.arch = optarg; @@ -57,9 +55,6 @@ main(int argc, char *argv[]) case ('s'): opts.cat = optarg; break; - case ('I'): - cs = 1; - break; default: usage(); return(EXIT_FAILURE); @@ -71,7 +66,7 @@ main(int argc, char *argv[]) if (0 == argc) return(EXIT_SUCCESS); - if (NULL == (e = exprcomp(cs, argv, argc))) { + if (NULL == (e = exprcomp(argc, argv))) { fprintf(stderr, "Bad expression\n"); return(EXIT_FAILURE); }