summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-04-04 19:08:19 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-04-04 19:08:19 +0000
commit6a575f6e244f93d5e3984ee2ca0466b4ee7dcc5b (patch)
tree33c063fd98cfff74a8eb75facb58cec0a3d7daa4 /lib/libc
parented2bf9a99915f69dd0cd59defe6e0974c974a0f5 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/fnmatch.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc/gen/fnmatch.c b/lib/libc/gen/fnmatch.c
index bd818cf7b4bb..1330ddbf4fef 100644
--- a/lib/libc/gen/fnmatch.c
+++ b/lib/libc/gen/fnmatch.c
@@ -187,12 +187,10 @@ rangematch(pattern, test, flags)
if (flags & FNM_CASEFOLD)
c2 = tolower((unsigned char)c2);
- if ( ( __collate_load_error
- && c <= test && test <= c2
- )
- || ( __collate_range_cmp(c, test) <= 0
- && __collate_range_cmp(test, c2) <= 0
- )
+ if (__collate_load_error ?
+ c <= test && test <= c2 :
+ __collate_range_cmp(c, test) <= 0
+ && __collate_range_cmp(test, c2) <= 0
)
ok = 1;
} else if (c == test)