Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107115015
D39526.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D39526.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 8:30 AM (20 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15752133
Default Alt Text
D39526.diff (1 KB)
Attached To
Mode
D39526: locate: Use C89 function definitions.
Attached
Detach File
Event Timeline
Log In to Comment