]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(extract_dirs_from_files): Remove unused variable.
authorJim Meyering <jim@meyering.net>
Mon, 25 Dec 2000 10:39:04 +0000 (10:39 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 25 Dec 2000 10:39:04 +0000 (10:39 +0000)
(gobble_file): Move decl of local, val, into the scope where it's used.

src/ls.c

index 7782b1dc1fc3f90c02f10865323fc4e60b5163f7..467625816638c6f074843057416751b37aadfa58 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -1860,7 +1860,6 @@ gobble_file (const char *name, enum filetype type, int explicit_arg,
             const char *dirname)
 {
   register uintmax_t blocks;
-  register int val;
   register char *path;
 
   if (files_index == nfiles)
@@ -1878,6 +1877,7 @@ gobble_file (const char *name, enum filetype type, int explicit_arg,
       || (format_needs_type && type == unknown))
     {
       /* `path' is the absolute pathname of this file. */
+      int val;
 
       if (name[0] == '/' || dirname[0] == 0)
        path = (char *) name;
@@ -2068,9 +2068,7 @@ static void
 extract_dirs_from_files (const char *dirname, int recursive)
 {
   register int i, j;
-  int dirlen;
 
-  dirlen = strlen (dirname) + 2;
   /* Queue the directories last one first, because queueing reverses the
      order.  */
   for (i = files_index - 1; i >= 0; i--)