bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coreutils-6.4: another C89 problem


From: Michael Deutschmann
Subject: coreutils-6.4: another C89 problem
Date: Tue, 24 Oct 2006 22:32:35 -0700 (PDT)

A new C99-syntax problem has appeared in 6.4 (after applying
c99-to-c89.diff), which is not the same as the ones I reported for 6.3.

A patch to fix it is appended.

---- Michael Deutschmann <address@hidden>

diff -durpN coreutils-6.4/lib/fts.c coreutils-fix/lib/fts.c
--- coreutils-6.4/lib/fts.c     2006-10-13 06:41:20.000000000 -0700
+++ coreutils-fix/lib/fts.c     2006-10-23 14:43:10.000000000 -0700
@@ -899,6 +899,7 @@ fts_build (register FTS *sp, int type)
        bool nostat;
        size_t len, maxlen, new_len;
        char *cp;
+       bool is_dir;
 
        /* Set current node pointer. */
        cur = sp->fts_cur;
@@ -1073,7 +1074,6 @@ mem1:                             saved_errno = errno;
                } 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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]