From b4df5c3aa1faa663d51ff8369977d7ea2e139dd2 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 22 Sep 2006 18:59:03 +0000 Subject: Remove code #ifndef'ed in prev. commit to stay in sync with OpenBSD v1.21 which just do that. --- lib/libc/stdlib/getopt_long.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/libc/stdlib') diff --git a/lib/libc/stdlib/getopt_long.c b/lib/libc/stdlib/getopt_long.c index 6073444..d2087eb 100644 --- a/lib/libc/stdlib/getopt_long.c +++ b/lib/libc/stdlib/getopt_long.c @@ -568,18 +568,6 @@ start: } else optarg = nargv[optind]; } -#ifndef GNU_COMPATIBLE - /* XXX: disable test for :: if PC? (GNU doesn't) */ - else if (!(flags & FLAG_PERMUTE)) { - /* - * If permutation is disabled, we can accept an - * optional arg separated by whitespace so long - * as it does not start with a dash (-). - */ - if (optind + 1 < nargc && *nargv[optind + 1] != '-') - optarg = nargv[++optind]; - } -#endif place = EMSG; ++optind; } -- cgit v1.1