From d68c1e59a80e0f1bea0c64f4bef0b292cc60babd Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 31 Jul 2004 01:00:50 +0000 Subject: [PATCH] Use #include 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... --- lib/libc/stdlib/getopt.3 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3 index bdbed8d0784..88fb51f38fe 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 int bflag, ch, fd; bflag = 0;