Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2018 02:40:10 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r332462 - stable/11/usr.bin/locate/locate
Message-ID:  <201804130240.w3D2eA1K015091@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Fri Apr 13 02:40:10 2018
New Revision: 332462
URL: https://svnweb.freebsd.org/changeset/base/332462

Log:
  MFC r306758 (emaste): locate: ANSIfy

Modified:
  stable/11/usr.bin/locate/locate/locate.c
  stable/11/usr.bin/locate/locate/util.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/locate/locate/locate.c
==============================================================================
--- stable/11/usr.bin/locate/locate/locate.c	Fri Apr 13 00:29:42 2018	(r332461)
+++ stable/11/usr.bin/locate/locate/locate.c	Fri Apr 13 02:40:10 2018	(r332462)
@@ -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;

Modified: stable/11/usr.bin/locate/locate/util.c
==============================================================================
--- stable/11/usr.bin/locate/locate/util.c	Fri Apr 13 00:29:42 2018	(r332461)
+++ stable/11/usr.bin/locate/locate/util.c	Fri Apr 13 02:40:10 2018	(r332462)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804130240.w3D2eA1K015091>