diff options
Diffstat (limited to 'usr.bin/locate')
-rw-r--r-- | usr.bin/locate/code/locate.code.c | 3 | ||||
-rw-r--r-- | usr.bin/locate/locate/locate.c | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/locate/code/locate.code.c b/usr.bin/locate/code/locate.code.c index c7cb097..e44c516 100644 --- a/usr.bin/locate/code/locate.code.c +++ b/usr.bin/locate/code/locate.code.c @@ -97,6 +97,7 @@ static char sccsid[] = "@(#)locate.code.c 8.1 (Berkeley) 6/6/93"; #include <stdlib.h> #include <string.h> #include <stdio.h> +#include <unistd.h> #include "locate.h" #define BGBUFSIZE (NBG * 2) /* size of bigram buffer */ @@ -119,8 +120,6 @@ int bgindex __P((char *)); void usage __P((void)); -extern int optind; -extern int optopt; int main(argc, argv) diff --git a/usr.bin/locate/locate/locate.c b/usr.bin/locate/locate/locate.c index a0ffe0d..0ee14f3 100644 --- a/usr.bin/locate/locate/locate.c +++ b/usr.bin/locate/locate/locate.c @@ -140,10 +140,6 @@ extern u_char *tolower_word __P((u_char *)); extern int check_bigram_char __P((int)); extern char *patprep __P((char *)); -extern char *optarg; -extern int optind; - - int main(argc, argv) int argc; |