From 818fd42831740a9f3fdd040c9482b352ef3d7eca Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 1 Apr 2004 22:32:28 +0000 Subject: Simplify one condition in prev. commit: short_too already assumes FLAG_LONGONLY --- lib/libc/stdlib/getopt_long.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libc/stdlib/getopt_long.c b/lib/libc/stdlib/getopt_long.c index 81dbe7d..28e24ae 100644 --- a/lib/libc/stdlib/getopt_long.c +++ b/lib/libc/stdlib/getopt_long.c @@ -252,8 +252,7 @@ parse_long_options(char * const *nargv, const char *options, * If this is a known short option, don't allow * a partial match of a single character. */ - if (short_too && - (!(flags & FLAG_LONGONLY) || current_argv_len == 1)) + if (short_too && current_argv_len == 1) continue; if (match == -1) /* first partial match */ -- cgit v1.1