summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-03 19:33:52 +0000
committerJim Meyering <jim@meyering.net>2003-01-03 19:33:52 +0000
commit1b6b9abd5537ae2cac200e5afe8e3dce90c53457 (patch)
tree95ac303b2cff4b84c749048404a68c9d90c090ce /src/ls.c
parent8e4c2127affdfeba6b664e9a92deb2d1c98fa58b (diff)
downloadcoreutils-1b6b9abd5537ae2cac200e5afe8e3dce90c53457.tar.xz
Include "dev-ino.h".
[struct dev_ino]: Remove declaration.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ls.c b/src/ls.c
index bf0f6c436..a8029a4bf 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -102,6 +102,7 @@ int wcwidth ();
#include "acl.h"
#include "argmatch.h"
+#include "dev-ino.h"
#include "dirname.h"
#include "dirfd.h"
#include "error.h"
@@ -298,7 +299,7 @@ char *program_name;
/* The set of `active' directories, from the current command-line argument
to the level in the hierarchy at which files are being listed.
- A directory is represented by its device and inode numbers.
+ A directory is represented by its device and inode numbers (struct dev_ino).
A directory is added to this set when ls begins listing it or its
entries, and it is removed from the set just after ls has finished
processing it. This set is used solely to detect loops, e.g., with
@@ -307,13 +308,6 @@ static Hash_table *active_dir_set;
#define LOOP_DETECT (!!active_dir_set)
-/* An entry in the active_dir_set. */
-struct dev_ino
-{
- dev_t st_dev;
- ino_t st_ino;
-};
-
/* The table of files in the current directory:
`files' points to a vector of `struct fileinfo', one per file.