summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-07-23 06:01:00 +0000
committerdas <das@FreeBSD.org>2004-07-23 06:01:00 +0000
commit4fe4b55b72751c86c283d5cb48c1a643021d8876 (patch)
treeb1c5366f4ee898e741454bd4b0f54b2b3f4410a6 /lib
parent2322892e0bbf7bdfdc334c74442cd2fd8b435e9c (diff)
downloadFreeBSD-src-4fe4b55b72751c86c283d5cb48c1a643021d8876.zip
FreeBSD-src-4fe4b55b72751c86c283d5cb48c1a643021d8876.tar.gz
Remove unused variable.
Noticed by: Todd Miller <Todd.Miller@courtesan.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/ftw.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libc/gen/ftw.c b/lib/libc/gen/ftw.c
index a13aa17..142474e 100644
--- a/lib/libc/gen/ftw.c
+++ b/lib/libc/gen/ftw.c
@@ -78,7 +78,6 @@ static int __ftw_core(const char *dir, void *func, int descr, int flags,
const char *paths[2];
int ftw_flag, func_ret;
struct FTW ftw_st;
- int skip_entry;
__ftw_func_t ftw_func;
__nftw_func_t nftw_func;
int saved_errno;
@@ -120,15 +119,11 @@ static int __ftw_core(const char *dir, void *func, int descr, int flags,
/* The main loop. Is it not nifty? Worship the loop. */
while ((entry = fts_read(hierarchy))) {
- skip_entry = 0;
-
switch (entry->fts_info) {
case FTS_D:
if ((MODE_NFTW != mode) || !(flags & FTW_DEPTH)) {
ftw_flag = FTW_D;
- } else {
- skip_entry = 1;
}
break;
@@ -161,8 +156,6 @@ static int __ftw_core(const char *dir, void *func, int descr, int flags,
case FTS_DP:
if ((MODE_NFTW == mode) && (flags & FTW_DEPTH)) {
ftw_flag = FTW_D;
- } else {
- skip_entry = 1;
}
break;
@@ -171,8 +164,7 @@ static int __ftw_core(const char *dir, void *func, int descr, int flags,
* type to call with, so cowardice seems the better part of
* guessing.
*/
-
- skip_entry = 1;
+ break;
}
if (MODE_FTW == mode) {
OpenPOWER on IntegriCloud