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/rpcinfo | |
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/rpcinfo')
-rw-r--r-- | usr.bin/rpcinfo/rpcinfo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/rpcinfo/rpcinfo.c b/usr.bin/rpcinfo/rpcinfo.c index 99089bb..622ea81 100644 --- a/usr.bin/rpcinfo/rpcinfo.c +++ b/usr.bin/rpcinfo/rpcinfo.c @@ -53,6 +53,7 @@ static char rcsid[] = #include <rpc/pmap_clnt.h> #include <signal.h> #include <ctype.h> +#include <unistd.h> #include <sys/param.h> #include <arpa/inet.h> @@ -89,8 +90,6 @@ main(argc, argv) char **argv; { register int c; - extern char *optarg; - extern int optind; int errflg; int function; u_short portnum; |