Page MenuHomeFreeBSD

D39526.id120205.diff
No OneTemporary

D39526.id120205.diff

diff --git a/usr.bin/locate/locate/fastfind.c b/usr.bin/locate/locate/fastfind.c
--- a/usr.bin/locate/locate/fastfind.c
+++ b/usr.bin/locate/locate/fastfind.c
@@ -40,9 +40,7 @@
#define _LOCATE_STATISTIC_
void
-statistic (fp, path_fcodes)
- FILE *fp; /* open database */
- char *path_fcodes; /* for error message */
+statistic (FILE *fp, char *path_fcodes)
{
long lines, chars, size, size_nbg, big, zwerg, umlaut;
u_char *p, *s;
@@ -128,11 +126,7 @@
#else
fastfind_mmap
#endif /* FF_ICASE */
-(pathpart, paddr, len, database)
- char *pathpart; /* search string */
- caddr_t paddr; /* mmap pointer */
- off_t len; /* length of database */
- char *database; /* for error message */
+(char *pathpart, caddr_t paddr, off_t len, char *database)
#else /* MMAP */
@@ -144,10 +138,7 @@
fastfind
#endif /* FF_ICASE */
-(fp, pathpart, database)
- FILE *fp; /* open database */
- char *pathpart; /* search string */
- char *database; /* for error message */
+(FILE *fp, char *pathpart, char *database)
#endif /* MMAP */
diff --git a/usr.bin/locate/locate/util.c b/usr.bin/locate/locate/util.c
--- a/usr.bin/locate/locate/util.c
+++ b/usr.bin/locate/locate/util.c
@@ -58,8 +58,7 @@
* or the database is obviously not a locate database.
*/
int
-check_bigram_char(ch)
- int ch;
+check_bigram_char(int ch)
{
/* legal bigram: 0, ASCII_MIN ... ASCII_MAX */
if (ch == 0 ||
@@ -138,8 +137,7 @@
static char globfree[100];
char *
-patprep(name)
- char *name;
+patprep(char *name)
{
char *endmark, *p, *subp;
@@ -192,8 +190,7 @@
/* tolower word */
u_char *
-tolower_word(word)
- u_char *word;
+tolower_word(u_char *word)
{
u_char *p;
@@ -215,8 +212,7 @@
*/
int
-getwm(p)
- caddr_t p;
+getwm(caddr_t p)
{
union {
char buf[INTSIZE];
@@ -252,8 +248,7 @@
*/
int
-getwf(fp)
- FILE *fp;
+getwf(FILE *fp)
{
int word, hword;
int i_max = LOCATE_PATH_MAX + OFFSET;

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 1, 4:32 PM (14 h, 54 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13251383
Default Alt Text
D39526.id120205.diff (1 KB)

Event Timeline