diff options
author | ache <ache@FreeBSD.org> | 1996-08-12 18:49:54 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-08-12 18:49:54 +0000 |
commit | 18e6a0b58f4135d736969d9e1db05995eb4ac5f5 (patch) | |
tree | 3f2ed0e11588c3b2e1116f5966c0d362c28edb67 /sys | |
parent | 956383bed878377c60fa07ec47955f81a6ee5833 (diff) | |
download | FreeBSD-src-18e6a0b58f4135d736969d9e1db05995eb4ac5f5.zip FreeBSD-src-18e6a0b58f4135d736969d9e1db05995eb4ac5f5.tar.gz |
Convert to newly aded collate compare function
Diffstat (limited to 'sys')
-rw-r--r-- | sys/libkern/fnmatch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/libkern/fnmatch.c b/sys/libkern/fnmatch.c index 3005184..47bd405 100644 --- a/sys/libkern/fnmatch.c +++ b/sys/libkern/fnmatch.c @@ -44,8 +44,8 @@ static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94"; */ #include <fnmatch.h> +#include <locale.h> #include <string.h> -#include "collate.h" #define EOS '\0' @@ -163,8 +163,8 @@ rangematch(pattern, test, flags) c2 = *pattern++; if (c2 == EOS) return (NULL); - if ( __collcmp(c, test) <= 0 - && __collcmp(test, c2) <= 0 + if ( collate_range_cmp(c, test) <= 0 + && collate_range_cmp(test, c2) <= 0 ) ok = 1; } else if (c == test) |