From c139d765d2c1d1d121192c32e26c11f193dcc304 Mon Sep 17 00:00:00 2001 From: kevans Date: Fri, 13 Apr 2018 02:40:10 +0000 Subject: MFC r306758 (emaste): locate: ANSIfy --- usr.bin/locate/locate/locate.c | 22 +++++++++++++--------- usr.bin/locate/locate/util.c | 5 +---- 2 files changed, 14 insertions(+), 13 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/locate/locate/locate.c b/usr.bin/locate/locate/locate.c index 3a87b14..ee9d26d 100644 --- a/usr.bin/locate/locate/locate.c +++ b/usr.bin/locate/locate/locate.c @@ -134,9 +134,7 @@ extern int check_bigram_char(int); extern char *patprep(char *); int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { register int ch; char **dbv = NULL; @@ -225,10 +223,13 @@ main(argc, argv) } +/* + * Arguments: + * db database + * s search strings + */ void -search_fopen(db, s) - char *db; /* database */ - char **s; /* search strings */ +search_fopen(char *db, char **s) { FILE *fp; #ifdef DEBUG @@ -275,10 +276,13 @@ search_fopen(db, s) } #ifdef MMAP +/* + * Arguments: + * db database + * s search strings + */ void -search_mmap(db, s) - char *db; /* database */ - char **s; /* search strings */ +search_mmap(char *db, char **s) { struct stat sb; int fd; diff --git a/usr.bin/locate/locate/util.c b/usr.bin/locate/locate/util.c index 9130e37..a315d50 100644 --- a/usr.bin/locate/locate/util.c +++ b/usr.bin/locate/locate/util.c @@ -83,10 +83,7 @@ check_bigram_char(ch) * */ char ** -colon(dbv, path, dot) - char **dbv; - char *path; - char *dot; /* default for single ':' */ +colon(char **dbv, char *path, char *dot) { int vlen, slen; char *c, *ch, *p; -- cgit v1.1