[git commit] libc: silence warning in fts
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Sat Feb 15 09:32:28 UTC 2014
commit: http://git.uclibc.org/uClibc/commit/?id=daec1677463134d27b3f6c4cef2907c1ac51be69
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
cderrno is dead code, comment it out.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
libc/misc/fts/fts.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libc/misc/fts/fts.c b/libc/misc/fts/fts.c
index 442dbf9..7dc6768 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
More information about the uClibc-cvs
mailing list