bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/8] maint: fts.c (__opendir2): Remove unused parameter, oflag.


From: Jim Meyering
Subject: [PATCH 4/8] maint: fts.c (__opendir2): Remove unused parameter, oflag.
Date: Thu, 18 Aug 2011 15:53:23 +0200

From: Jim Meyering <address@hidden>

---
 lib/fts.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/fts.c b/lib/fts.c
index 776dda5..b8b7c5a 100644
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -1192,7 +1192,7 @@ set_stat_type (struct stat *st, unsigned int dtype)
   st->st_mode = type;
 }

-# define __opendir2(file, flag) \
+# define __opendir2(file) \
         opendirat((! ISSET(FTS_NOCHDIR) && ISSET(FTS_CWDFD)     \
                    ? sp->fts_cwd_fd : AT_FDCWD),                \
                   file,                                         \
@@ -1242,7 +1242,7 @@ fts_build (register FTS *sp, int type)

         /* Open the directory for reading.  If this fails, we're done.
            If being called from fts_read, set the fts_info field.  */
-        if ((dirp = __opendir2(cur->fts_accpath, oflag)) == NULL) {
+        if ((dirp = __opendir2(cur->fts_accpath)) == NULL) {
                 if (type == BREAD) {
                         cur->fts_info = FTS_DNR;
                         cur->fts_errno = errno;
-- 
1.7.6.857.gf34cf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]