From: Jim Meyering Date: Sat, 22 Jan 2000 22:54:51 +0000 (+0000) Subject: (keycompare): Use global, hard_LC_COLLATE in place of X-Git-Tag: FILEUTILS-4_0p~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45d534215aac91ce1b30b774006c124a8299d817;p=platform%2Fupstream%2Fcoreutils.git (keycompare): Use global, hard_LC_COLLATE in place of local that is sometimes undeclared. --- diff --git a/src/sort.c b/src/sort.c index 8f7a03b..1d07419 100644 --- a/src/sort.c +++ b/src/sort.c @@ -1087,7 +1087,6 @@ keycompare (const struct line *a, const struct line *b) register char *lima = a->keylim; register char *limb = b->keylim; - int hard_collate = hard_LC_COLLATE; int diff, lena, lenb; for (;;) @@ -1127,7 +1126,7 @@ keycompare (const struct line *a, const struct line *b) #ifdef ENABLE_NLS /* Sorting like this may become slow, so in a simple locale the user can select a faster sort that is similar to ascii sort */ - else if (hard_collate) + else if (hard_LC_COLLATE) { if (ignore || translate) {