From f8a6c13af52d84516816b590c5d63cc91c8d27d2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 21 Nov 2006 09:15:22 +0000 Subject: [PATCH] * lib/fts.c (fts_safe_changedir): Move a declaration "up", so as to remain compatible with older compilers. Patch from Michael Deutschmann. --- ChangeLog | 6 ++++++ lib/fts.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index def7c47e0..85b9fed31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-11-21 Jim Meyering + + * 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 * MODULES.html.sh (File system functions): Add openat. diff --git a/lib/fts.c b/lib/fts.c index db6674843..b3b021021 100644 --- a/lib/fts.c +++ b/lib/fts.c @@ -1645,8 +1645,9 @@ fts_safe_changedir (FTS *sp, FTSENT *p, int fd, char const *dir) 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) { -- 2.11.0