=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/apropos/Attic/apropos.c,v retrieving revision 1.7 retrieving revision 1.10 diff -u -r1.7 -r1.10 --- src/usr.bin/apropos/Attic/apropos.c 2000/11/20 14:03:31 1.7 +++ src/usr.bin/apropos/Attic/apropos.c 2003/06/10 22:20:44 1.10 @@ -1,4 +1,4 @@ -/* $OpenBSD: apropos.c,v 1.7 2000/11/20 14:03:31 deraadt 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 $ */ /* @@ -13,11 +13,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -44,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)apropos.c 8.8 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$OpenBSD: apropos.c,v 1.7 2000/11/20 14:03:31 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: apropos.c,v 1.10 2003/06/10 22:20:44 deraadt Exp $"; #endif #endif /* not lint */ @@ -66,15 +62,13 @@ #define MAXLINELEN 8192 /* max line handled */ -void apropos __P((char **, char *, int)); -void lowstr __P((char *, char *)); -int match __P((char *, char *)); -void usage __P((void)); +void apropos(char **, char *, int); +void lowstr(char *, char *); +int match(char *, char *); +void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { ENTRY *ep; TAG *tp; @@ -137,9 +131,7 @@ } 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]; @@ -187,8 +179,7 @@ * match anywhere the string appears */ int -match(bp, str) - char *bp, *str; +match(char *bp, char *str) { int len; char test; @@ -209,8 +200,7 @@ * convert a string to lower case */ void -lowstr(from, to) - char *from, *to; +lowstr(char *from, char *to) { char ch; @@ -224,7 +214,7 @@ * print usage message and die */ void -usage() +usage(void) { (void)fprintf(stderr,