From 1b6b9abd5537ae2cac200e5afe8e3dce90c53457 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 3 Jan 2003 19:33:52 +0000 Subject: [PATCH] Include "dev-ino.h". [struct dev_ino]: Remove declaration. --- src/ls.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ls.c b/src/ls.c index bf0f6c4..a8029a4 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. -- 2.7.4