summaryrefslogtreecommitdiff
path: root/usr.bin/apropos
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/apropos')
-rw-r--r--usr.bin/apropos/apropos.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/usr.bin/apropos/apropos.c b/usr.bin/apropos/apropos.c
index 61e53d8e6be..e39d546e0d9 100644
--- a/usr.bin/apropos/apropos.c
+++ b/usr.bin/apropos/apropos.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apropos.c,v 1.9 2003/06/03 02:56:05 millert Exp $ */
+/* $OpenBSD: apropos.c,v 1.10 2003/06/10 22:20:44 deraadt Exp $ */
/* $NetBSD: apropos.c,v 1.5 1995/09/04 20:46:20 tls Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)apropos.c 8.8 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: apropos.c,v 1.9 2003/06/03 02:56:05 millert Exp $";
+static char rcsid[] = "$OpenBSD: apropos.c,v 1.10 2003/06/10 22:20:44 deraadt Exp $";
#endif
#endif /* not lint */
@@ -68,9 +68,7 @@ int match(char *, char *);
void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
ENTRY *ep;
TAG *tp;
@@ -133,9 +131,7 @@ main(argc, argv)
}
void
-apropos(argv, path, buildpath)
- char **argv, *path;
- int buildpath;
+apropos(char **argv, char *path, int buildpath)
{
char *end, *name, **p;
char buf[MAXLINELEN + 1], wbuf[MAXLINELEN + 1];
@@ -183,8 +179,7 @@ apropos(argv, path, buildpath)
* match anywhere the string appears
*/
int
-match(bp, str)
- char *bp, *str;
+match(char *bp, char *str)
{
int len;
char test;
@@ -205,8 +200,7 @@ match(bp, str)
* convert a string to lower case
*/
void
-lowstr(from, to)
- char *from, *to;
+lowstr(char *from, char *to)
{
char ch;
@@ -220,7 +214,7 @@ lowstr(from, to)
* print usage message and die
*/
void
-usage()
+usage(void)
{
(void)fprintf(stderr,