summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/apropos.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-11-29 22:30:57 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-11-29 22:30:57 +0000
commit1cb31a2098e2bba592d73a2e88e04bdaab9646d9 (patch)
tree3ae69d87558411c40b0c655d7b251d50d37e9917 /usr.bin/mandoc/apropos.c
parente37ec72c97cfecbf21df2b4348147efc8b6b1fb3 (diff)
Sync to bsd.lv, mostly from kristaps@.
Make `-i' only apply to regular expressions. For substring matches, always use strcasestr(). Also, improve some manuals and comments.
Diffstat (limited to 'usr.bin/mandoc/apropos.c')
-rw-r--r--usr.bin/mandoc/apropos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/apropos.c b/usr.bin/mandoc/apropos.c
index 5e309236ca8..5660b1f6576 100644
--- a/usr.bin/mandoc/apropos.c
+++ b/usr.bin/mandoc/apropos.c
@@ -1,4 +1,4 @@
-/* $Id: apropos.c,v 1.9 2011/11/28 00:16:38 schwarze Exp $ */
+/* $Id: apropos.c,v 1.10 2011/11/29 22:30:56 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -138,8 +138,8 @@ usage(void)
{
fprintf(stderr, "usage: %s "
- "[-M path] "
- "[-m path] "
+ "[-M manpath] "
+ "[-m manpath] "
"[-S arch] "
"[-s section] "
"expression...\n",