diff options
author | imp <imp@FreeBSD.org> | 2004-07-31 01:00:50 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2004-07-31 01:00:50 +0000 |
commit | 2a5cd867552dd8ce8d1f40b73166d53f21da5301 (patch) | |
tree | b825a37d301b7557aabfefcfaf00c4c006b2af2c /lib/libc | |
parent | 0d74239c0036a9cdc8e207955d254d863844fdd0 (diff) | |
download | FreeBSD-src-2a5cd867552dd8ce8d1f40b73166d53f21da5301.zip FreeBSD-src-2a5cd867552dd8ce8d1f40b73166d53f21da5301.tar.gz |
Use #include <unistd.h> rather than the explicit externs in the
example. The externs haven't been needed in about 10 years, so
there's no reason to have them other than for hysterical raisins. And
the California Rasins haven't been around for a long time...
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdlib/getopt.3 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3 index bdbed8d..88fb51f 100644 --- a/lib/libc/stdlib/getopt.3 +++ b/lib/libc/stdlib/getopt.3 @@ -164,8 +164,7 @@ The function returns \-1 when the argument list is exhausted. .Sh EXAMPLES .Bd -literal -compact -extern char *optarg; -extern int optind; +#include <unistd.h> int bflag, ch, fd; bflag = 0; |