summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2000-12-20 15:59:51 +0000
committerchristos <christos@NetBSD.org>2000-12-20 15:59:51 +0000
commitb8e7598d98a600ff78508a4d0ecd13afcdad9612 (patch)
tree26e73c3dd01c62daf064bd5a02f5e528626bc840 /lib/libc/stdlib
parent9a73f8b22b12a5c4645a0104c3c73ea444fa1689 (diff)
fix nested extern
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/getopt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdlib/getopt.c b/lib/libc/stdlib/getopt.c
index 2bfd29de564..5543bf896fe 100644
--- a/lib/libc/stdlib/getopt.c
+++ b/lib/libc/stdlib/getopt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: getopt.c,v 1.17 2000/01/22 22:19:19 mycroft Exp $ */
+/* $NetBSD: getopt.c,v 1.18 2000/12/20 15:59:51 christos Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)getopt.c 8.3 (Berkeley) 4/27/95";
#else
-__RCSID("$NetBSD: getopt.c,v 1.17 2000/01/22 22:19:19 mycroft Exp $");
+__RCSID("$NetBSD: getopt.c,v 1.18 2000/12/20 15:59:51 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -54,6 +54,8 @@ __RCSID("$NetBSD: getopt.c,v 1.17 2000/01/22 22:19:19 mycroft Exp $");
__weak_alias(getopt,_getopt)
#endif
+extern char *__progname;
+
int opterr = 1, /* if error message should be printed */
optind = 1, /* index into parent argv vector */
@@ -75,7 +77,6 @@ getopt(nargc, nargv, ostr)
char * const nargv[];
const char *ostr;
{
- extern char *__progname;
static char *place = EMSG; /* option letter processing */
char *oli; /* option letter list index */