locate: ANSIfy
This commit is contained in:
parent
d41042ad84
commit
4a1cdaba5f
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user