]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include "dev-ino.h".
authorJim Meyering <jim@meyering.net>
Fri, 3 Jan 2003 19:33:52 +0000 (19:33 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 3 Jan 2003 19:33:52 +0000 (19:33 +0000)
[struct dev_ino]: Remove declaration.

src/ls.c

index bf0f6c436312ba8cca7c4e54a72f61ac64215596..a8029a4bfe5ec7a076a5b87a47918cecc9a758a4 100644 (file)
--- 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.