diff options
author | ache <ache@FreeBSD.org> | 1997-04-04 19:08:19 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-04-04 19:08:19 +0000 |
commit | 1fc112af6ff325273cbba10e39b5c659136fa3c4 (patch) | |
tree | c0115b4cb13bdc337f48c55299dce2ea170f72fd /sys/libkern | |
parent | 8dc8604567aaa7a93f829dc606f088230bbbf5b5 (diff) | |
download | FreeBSD-src-1fc112af6ff325273cbba10e39b5c659136fa3c4.zip FreeBSD-src-1fc112af6ff325273cbba10e39b5c659136fa3c4.tar.gz |
Eliminate some function calls when locale not used
Diffstat (limited to 'sys/libkern')
-rw-r--r-- | sys/libkern/fnmatch.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/libkern/fnmatch.c b/sys/libkern/fnmatch.c index bd818cf..1330ddb 100644 --- a/sys/libkern/fnmatch.c +++ b/sys/libkern/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) |