]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(keycompare): Move declarations of locals, lena and lenb,
authorJim Meyering <jim@meyering.net>
Thu, 22 Feb 2001 15:11:08 +0000 (15:11 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 22 Feb 2001 15:11:08 +0000 (15:11 +0000)
into the inner scope where they are used.

src/sort.c

index 9e064bbb4ec6cca2b7777d02b15a9eeabaa0e07d..360b28c2f55ad7770ef3920bc689f4b8f78772a6 100644 (file)
@@ -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)
        {