summaryrefslogtreecommitdiff
path: root/libc/misc/fts/fts.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-02-15 10:32:28 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-02-15 10:32:28 +0100
commitdaec1677463134d27b3f6c4cef2907c1ac51be69 (patch)
tree874d5790aee0846cd389284be69708849aeb09e7 /libc/misc/fts/fts.c
parent70a04a287a2875c82e6822c36e071afba5b63a62 (diff)
libc: silence warning in fts
cderrno is dead code, comment it out. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc/fts/fts.c')
-rw-r--r--libc/misc/fts/fts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/misc/fts/fts.c b/libc/misc/fts/fts.c
index 442dbf954..7dc67683b 100644
--- a/libc/misc/fts/fts.c
+++ b/libc/misc/fts/fts.c
@@ -577,7 +577,7 @@ fts_build(register FTS *sp, int type)
FTSENT *cur, *tail;
DIR *dirp;
void *oldaddr;
- int cderrno, descend, len, level, nlinks, saved_errno,
+ int /*cderrno,*/ descend, len, level, nlinks, saved_errno,
nostat, doadjust;
size_t maxlen;
char *cp;
@@ -642,14 +642,14 @@ fts_build(register FTS *sp, int type)
* needed sorted entries or stat information, they had better be
* checking FTS_NS on the returned nodes.
*/
- cderrno = 0;
+ /* cderrno = 0; */
if (nlinks || type == BREAD) {
if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) {
if (nlinks && type == BREAD)
cur->fts_errno = errno;
cur->fts_flags |= FTS_DONTCHDIR;
descend = 0;
- cderrno = errno;
+ /* cderrno = errno; */
(void)closedir(dirp);
dirp = NULL;
} else