Mercurial > gnulib
changeset 27246:654891a5f161
(fts_build): Move variable declaration, for C89 compliance.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 24 Oct 2006 13:31:50 +0000 |
parents | 8fe90acd3f4a |
children | 7d0a7b9088ff |
files | lib/fts.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/fts.c Tue Oct 24 13:25:28 2006 +0000 +++ b/lib/fts.c Tue Oct 24 13:31:50 2006 +0000 @@ -1008,6 +1008,8 @@ /* Read the directory, attaching each entry to the `link' pointer. */ doadjust = false; for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { + bool is_dir; + if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name)) continue; @@ -1073,7 +1075,6 @@ } else p->fts_accpath = p->fts_name; - bool is_dir; if (sp->fts_compar == NULL || ISSET(FTS_DEFER_STAT)) { /* Record what fts_read will have to do with this entry. In many cases, it will simply fts_stat it,