diff options
author | imp <imp@FreeBSD.org> | 2000-09-04 06:09:54 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-09-04 06:09:54 +0000 |
commit | 3c95f9ccdee03bbd5201ce0c06d795f6b132e266 (patch) | |
tree | 4e524d498db186c036b4495d56fd8d77c6a9d266 /usr.bin/locate | |
parent | 180527062b861cb7c3ec4718c0522abe8677950a (diff) | |
download | FreeBSD-src-3c95f9ccdee03bbd5201ce0c06d795f6b132e266.zip FreeBSD-src-3c95f9ccdee03bbd5201ce0c06d795f6b132e266.tar.gz |
getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.
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; |