Mercurial > hg > octave-nkf > gnulib-hg
changeset 15527:5ef1be7fe908
maint: fts.c: remove __opendir2's now-unused parameter, oflag
* lib/fts.c (__opendir2): Remove unused parameter, oflag.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Tue, 16 Aug 2011 20:18:33 +0200 |
parents | 95cf436ab3b8 |
children | 8203b056cc79 |
files | ChangeLog lib/fts.c |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/lib/fts.c +++ b/lib/fts.c @@ -1192,7 +1192,7 @@ 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 @@ /* 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;