Mercurial > hg > octave-nkf > gnulib-hg
changeset 7681:a6b7b31e9ddf
* lib/fts.c (fts_safe_changedir): Move a declaration "up",
so as to remain compatible with older compilers.
Patch from Michael Deutschmann.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 21 Nov 2006 09:15:22 +0000 |
parents | 2cbecf87a1e8 |
children | cda6a677c88b |
files | ChangeLog lib/fts.c |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-11-21 Jim Meyering <jim@meyering.net> + + * lib/fts.c (fts_safe_changedir): Move a declaration "up", + so as to remain compatible with older compilers. + Patch from Michael Deutschmann. + 2006-11-20 Paul Eggert <eggert@cs.ucla.edu> * MODULES.html.sh (File system functions): Add openat.
--- a/lib/fts.c +++ b/lib/fts.c @@ -1645,8 +1645,9 @@ failure when we lack "x" access to the virtual cwd. */ if ( ! i_ring_empty (&sp->fts_fd_ring)) { + int parent_fd; fd_ring_print (sp, stderr, "pre-pop"); - int parent_fd = i_ring_pop (&sp->fts_fd_ring); + parent_fd = i_ring_pop (&sp->fts_fd_ring); is_dotdot = true; if (0 <= parent_fd) {