diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 12:12:39 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 12:12:39 +0000 |
commit | 0893220b2a4507fc2619b625ecb0d6241ef5cd6f (patch) | |
tree | 1f81a1c1fac15dc8f3cd86aef65cbcf261f01a97 /cpukit/libmisc/shell/fts.c | |
parent | Whitespace removal. (diff) | |
download | rtems-0893220b2a4507fc2619b625ecb0d6241ef5cd6f.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'cpukit/libmisc/shell/fts.c')
-rw-r--r-- | cpukit/libmisc/shell/fts.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/libmisc/shell/fts.c b/cpukit/libmisc/shell/fts.c index 37f72ebcfa..1383e07798 100644 --- a/cpukit/libmisc/shell/fts.c +++ b/cpukit/libmisc/shell/fts.c @@ -366,7 +366,7 @@ fts_read( } p->fts_info = FTS_DP; return (p); - } + } /* Rebuild if only read the names and now traversing. */ if (sp->fts_child && ISSET(FTS_NAMEONLY)) { @@ -571,7 +571,7 @@ fts_children( if (instr == FTS_NAMEONLY) { SET(FTS_NAMEONLY); instr = BNAMES; - } else + } else instr = BCHILD; /* @@ -777,7 +777,7 @@ mem1: saved_errno = errno; p->fts_accpath = cur->fts_accpath; } else if (nlinks == 0 #ifdef DT_DIR - || (nostat && + || (nostat && dp->d_type != DT_DIR && dp->d_type != DT_UNKNOWN) #endif ) { @@ -899,7 +899,7 @@ fts_stat( if (!lstat(p->fts_accpath, sbp)) { errno = 0; return (FTS_SLNONE); - } + } p->fts_errno = saved_errno; goto err; } @@ -974,7 +974,7 @@ fts_sort( } for (ap = sp->fts_array, p = head; p; p = p->fts_link) *ap++ = p; - qsort((void *)sp->fts_array, nitems, sizeof(FTSENT *), + qsort((void *)sp->fts_array, nitems, sizeof(FTSENT *), (int (*) __P((const void *, const void *)))sp->fts_compar); for (head = *(ap = sp->fts_array); --nitems; ++ap) ap[0]->fts_link = ap[1]; @@ -1081,7 +1081,7 @@ fts_pow2( * Allow essentially unlimited paths; find, rm, ls should all work on any tree. * Most systems will allow creation of paths much longer than MAXPATHLEN, even * though the kernel won't resolve them. Round up the new size to a power of 2, - * so we don't realloc the path 2 bytes at a time. + * so we don't realloc the path 2 bytes at a time. */ static int fts_palloc( |