summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-07-31 01:00:50 +0000
committerimp <imp@FreeBSD.org>2004-07-31 01:00:50 +0000
commit2a5cd867552dd8ce8d1f40b73166d53f21da5301 (patch)
treeb825a37d301b7557aabfefcfaf00c4c006b2af2c /lib/libc
parent0d74239c0036a9cdc8e207955d254d863844fdd0 (diff)
downloadFreeBSD-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.33
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;
OpenPOWER on IntegriCloud