2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>

* libmisc/shell/fts.c: Conditionally use var "nostat".
This commit is contained in:
Ralf Corsepius
2011-10-18 09:21:32 +00:00
parent 5ae9228ab9
commit 76d04a0284
2 changed files with 12 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/fts.c: Conditionally use var "nostat".
* pppd/options.c: Remove unused var "ok".
* libnetworking/rtems/rtems_dhcp.c: Remove unused var
"disconnected".
+11 -1
View File
@@ -643,7 +643,11 @@ fts_build(FTS *sp, int type)
DIR *dirp;
void *oldaddr;
size_t dnamlen;
int cderrno, descend, level, nlinks, saved_errno, nostat, doadjust;
int cderrno, descend, level, nlinks, saved_errno;
#ifdef DT_DIR
int nostat;
#endif
int doadjust;
size_t len, maxlen;
#ifdef FTS_WHITEOUT
int oflag;
@@ -682,13 +686,19 @@ fts_build(FTS *sp, int type)
*/
if (type == BNAMES) {
nlinks = 0;
#ifdef DT_DIR
nostat = 1;
#endif
} else if (ISSET(FTS_NOSTAT) && ISSET(FTS_PHYSICAL)) {
nlinks = cur->fts_nlink - (ISSET(FTS_SEEDOT) ? 0 : 2);
#ifdef DT_DIR
nostat = 1;
#endif
} else {
nlinks = -1;
#ifdef DT_DIR
nostat = 0;
#endif
}
#ifdef notdef