=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/Attic/apropos.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/mandoc/Attic/apropos.c 2011/11/13 09:58:21 1.3 +++ src/usr.bin/mandoc/Attic/apropos.c 2011/11/13 11:07:10 1.4 @@ -1,4 +1,4 @@ -/* $Id: apropos.c,v 1.3 2011/11/13 09:58:21 schwarze Exp $ */ +/* $Id: apropos.c,v 1.4 2011/11/13 11:07:10 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -33,7 +33,7 @@ int apropos(int argc, char *argv[]) { - int ch, cs; + int ch; struct opts opts; struct expr *e; extern int optind; @@ -47,9 +47,7 @@ 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 @@ case ('s'): opts.cat = optarg; break; - case ('I'): - cs = 1; - break; default: usage(); return(EXIT_FAILURE); @@ -71,7 +66,7 @@ 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); }