Mercurial > hg > octave-lojdl > gnulib-hg
changeset 7555:0da62e3fa6c7
(fts_build): Move variable declaration, for C89 compliance.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 24 Oct 2006 13:31:50 +0000 |
parents | 579cface12e9 |
children | 2760a0d99f1e |
files | lib/fts.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/fts.c +++ b/lib/fts.c @@ -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,