maint: fts.c: remove __opendir2's now-unused parameter, oflag
authorJim Meyering <meyering@redhat.com>
Tue, 16 Aug 2011 18:18:33 +0000 (20:18 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 19 Aug 2011 14:52:17 +0000 (16:52 +0200)
* lib/fts.c (__opendir2): Remove unused parameter, oflag.

ChangeLog
lib/fts.c

index 83166c3..414186a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-08-19  Jim Meyering  <meyering@redhat.com>
 
+       maint: fts.c: remove __opendir2's now-unused parameter, oflag
+       * lib/fts.c (__opendir2): Remove unused parameter, oflag.
+
        maint: fts.c: correct off-by-one indentation
        * lib/fts.c (fts_build): Correct indentation, change style
        of a couple of block comments, and bracing style.
index 776dda5..b8b7c5a 100644 (file)
--- 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;