diff options
author | imp <imp@FreeBSD.org> | 2002-03-22 01:22:50 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-03-22 01:22:50 +0000 |
commit | 74d826c7a6e9f98072df5f7dba2b84aa516fe425 (patch) | |
tree | 6ba560b9c74ad4aa7b2711587ec42a969bdca745 /usr.bin/locate | |
parent | ce819c0c139981d7bab5fe36a6074af74b01d185 (diff) | |
download | FreeBSD-src-74d826c7a6e9f98072df5f7dba2b84aa516fe425.zip FreeBSD-src-74d826c7a6e9f98072df5f7dba2b84aa516fe425.tar.gz |
remove __P
Diffstat (limited to 'usr.bin/locate')
-rw-r--r-- | usr.bin/locate/code/locate.code.c | 4 | ||||
-rw-r--r-- | usr.bin/locate/locate/locate.c | 41 | ||||
-rw-r--r-- | usr.bin/locate/locate/util.c | 14 |
3 files changed, 26 insertions, 33 deletions
diff --git a/usr.bin/locate/code/locate.code.c b/usr.bin/locate/code/locate.code.c index e44c516..6290c67 100644 --- a/usr.bin/locate/code/locate.code.c +++ b/usr.bin/locate/code/locate.code.c @@ -115,11 +115,11 @@ bg_t big[UCHAR_MAX + 1][UCHAR_MAX + 1]; #else #define BGINDEX(x) bgindex(x) typedef int bg_t; -int bgindex __P((char *)); +int bgindex(char *); #endif /* LOOKUP */ -void usage __P((void)); +void usage(void); int main(argc, argv) diff --git a/usr.bin/locate/locate/locate.c b/usr.bin/locate/locate/locate.c index e4d0179..9283599 100644 --- a/usr.bin/locate/locate/locate.c +++ b/usr.bin/locate/locate/locate.c @@ -96,13 +96,6 @@ static const char rcsid[] = #endif -#ifdef sun -#include <netinet/in.h> /* SunOS byteorder(3) htohl(3) */ -#ifndef __P -#define __P(x) x -#endif -#endif - #include "locate.h" #include "pathnames.h" @@ -121,23 +114,23 @@ int f_limit; /* limit number of output lines, 0 == infinite */ u_int counter; /* counter for matches [-c] */ -void usage __P((void)); -void statistic __P((FILE *, char *)); -void fastfind __P((FILE *, char *, char *)); -void fastfind_icase __P((FILE *, char *, char *)); -void fastfind_mmap __P((char *, caddr_t, int, char *)); -void fastfind_mmap_icase __P((char *, caddr_t, int, char *)); -void search_mmap __P((char *, char **)); -void search_fopen __P((char *, char **)); -unsigned long cputime __P((void)); - -extern char **colon __P((char **, char*, char*)); -extern void print_matches __P((u_int)); -extern int getwm __P((caddr_t)); -extern int getwf __P((FILE *)); -extern u_char *tolower_word __P((u_char *)); -extern int check_bigram_char __P((int)); -extern char *patprep __P((char *)); +void usage(void); +void statistic(FILE *, char *); +void fastfind(FILE *, char *, char *); +void fastfind_icase(FILE *, char *, char *); +void fastfind_mmap(char *, caddr_t, int, char *); +void fastfind_mmap_icase(char *, caddr_t, int, char *); +void search_mmap(char *, char **); +void search_fopen(char *, char **); +unsigned long cputime(void); + +extern char **colon(char **, char*, char*); +extern void print_matches(u_int); +extern int getwm(caddr_t); +extern int getwf(FILE *); +extern u_char *tolower_word(u_char *); +extern int check_bigram_char(int); +extern char *patprep(char *); int main(argc, argv) diff --git a/usr.bin/locate/locate/util.c b/usr.bin/locate/locate/util.c index 4fee1f3..ab77699 100644 --- a/usr.bin/locate/locate/util.c +++ b/usr.bin/locate/locate/util.c @@ -47,13 +47,13 @@ #include "locate.h" -char **colon __P((char **, char*, char*)); -char *patprep __P((char *)); -void print_matches __P((u_int)); -u_char *tolower_word __P((u_char *)); -int getwm __P((caddr_t)); -int getwf __P((FILE *)); -int check_bigram_char __P((int)); +char **colon(char **, char*, char*); +char *patprep(char *); +void print_matches(u_int); +u_char *tolower_word(u_char *); +int getwm(caddr_t); +int getwf(FILE *); +int check_bigram_char(int); /* * Validate bigram chars. If the test failed the database is corrupt |