From: Jim Meyering Date: Thu, 22 Feb 2001 15:11:08 +0000 (+0000) Subject: (keycompare): Move declarations of locals, lena and lenb, X-Git-Tag: TEXTUTILS-2_0_12~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f001b35eddccad8629f6d6a6825dcc340c6c0c7;p=thirdparty%2Fcoreutils.git (keycompare): Move declarations of locals, lena and lenb, into the inner scope where they are used. --- diff --git a/src/sort.c b/src/sort.c index 9e064bbb4e..360b28c2f5 100644 --- a/src/sort.c +++ b/src/sort.c @@ -1288,7 +1288,6 @@ keycompare (const struct line *a, const struct line *b) register char *limb = b->keylim; int diff; - size_t lena, lenb; for (;;) { @@ -1296,8 +1295,8 @@ keycompare (const struct line *a, const struct line *b) register int *ignore = key->ignore; /* Find the lengths. */ - lena = lima <= texta ? 0 : lima - texta; - lenb = limb <= textb ? 0 : limb - textb; + size_t lena = lima <= texta ? 0 : lima - texta; + size_t lenb = limb <= textb ? 0 : limb - textb; if (key->skipeblanks) {