diff options
author | Jim Meyering <jim@meyering.net> | 2000-12-25 10:39:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-12-25 10:39:04 +0000 |
commit | ec76cb5726d13492544144675128a19832565c06 (patch) | |
tree | 22ea83adbd44bc6fa8b1fd5bdf1020f11963dbd8 | |
parent | d6c55effc35db7efb2920472cdbf5308bd766023 (diff) | |
download | coreutils-ec76cb5726d13492544144675128a19832565c06.tar.xz |
(extract_dirs_from_files): Remove unused variable.
(gobble_file): Move decl of local, val, into the scope where it's used.
-rw-r--r-- | src/ls.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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--) |