diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2003-08-03 04:36:09 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2003-08-03 04:36:09 +0000 |
commit | 94bfac9e80c634c52877189efdfcb225ada93044 (patch) | |
tree | 68938fbabfbd36a0fb6b3a5ca4d72cb2bbca509d /gnu | |
parent | 508f10f7c18b5124a50401425d4095ce4b503640 (diff) |
Notes
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/lib/libregex/regex.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gnu/lib/libregex/regex.c b/gnu/lib/libregex/regex.c index 335e5d3fca7f9..fe523735746d4 100644 --- a/gnu/lib/libregex/regex.c +++ b/gnu/lib/libregex/regex.c @@ -19,6 +19,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +/* $FreeBSD$ */ + /* AIX requires this to be the first thing in the file. */ #if defined (_AIX) && !defined (REGEX_MALLOC) #pragma alloca @@ -1114,19 +1116,14 @@ static boolean group_in_compile_stack _RE_ARGS((compile_stack_type regnum_t regnum)); #ifdef __FreeBSD__ -static int collate_range_cmp (a, b) +static int collate_range_cmp(a, b) int a, b; { - int r; static char s[2][2]; - if ((unsigned char)a == (unsigned char)b) - return 0; s[0][0] = a; s[1][0] = b; - if ((r = strcoll(s[0], s[1])) == 0) - r = (unsigned char)a - (unsigned char)b; - return r; + return (strcoll(s[0], s[1])); } #endif |