summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-25 10:39:04 +0000
committerJim Meyering <jim@meyering.net>2000-12-25 10:39:04 +0000
commitec76cb5726d13492544144675128a19832565c06 (patch)
tree22ea83adbd44bc6fa8b1fd5bdf1020f11963dbd8 /src
parentd6c55effc35db7efb2920472cdbf5308bd766023 (diff)
downloadcoreutils-ec76cb5726d13492544144675128a19832565c06.tar.xz
(extract_dirs_from_files): Remove unused variable.
(gobble_file): Move decl of local, val, into the scope where it's used.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ls.c b/src/ls.c
index 7782b1dc1..467625816 100644
--- 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--)