From df9eb04e4072f01abe16a42a09e201621c88bbec Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 3 Aug 2003 04:28:10 +0000 Subject: Remove collate_range_cmp() stabilization, it conflicts with ranges --- bin/sh/expand.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/bin/sh/expand.c b/bin/sh/expand.c index 4ff7427..261bc7e 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -116,20 +116,13 @@ STATIC char *cvtnum(int, char *); STATIC int collate_range_cmp(int, int); STATIC int -collate_range_cmp (int c1, int c2) +collate_range_cmp(int c1, int c2) { static char s1[2], s2[2]; - int ret; - c1 &= UCHAR_MAX; - c2 &= UCHAR_MAX; - if (c1 == c2) - return (0); s1[0] = c1; s2[0] = c2; - if ((ret = strcoll(s1, s2)) != 0) - return (ret); - return (c1 - c2); + return (strcoll(s1, s2)); } /* -- cgit v1.1