summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRakesh Pandit <rakesh@fedoraproject.org>2009-05-28 12:21:08 +0530
committerPanu Matilainen <pmatilai@redhat.com>2009-06-02 09:59:29 +0300
commitaefe94178709cd4c42fc87e2421106421d7f9bd4 (patch)
tree358eaeee4608eef7f118b1c97f74906df0e25eb4
parent0a48a2e2425fc15f124d3333daf3f5a5a5ece232 (diff)
downloadlibrpm-tizen-aefe94178709cd4c42fc87e2421106421d7f9bd4.tar.gz
librpm-tizen-aefe94178709cd4c42fc87e2421106421d7f9bd4.tar.bz2
librpm-tizen-aefe94178709cd4c42fc87e2421106421d7f9bd4.zip
Removing extra useless 'break' statement lines and unhandled FTS_FOO cases.
-rw-r--r--lib/rpmgi.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/rpmgi.c b/lib/rpmgi.c
index 4f9692e4e..011076a6d 100644
--- a/lib/rpmgi.c
+++ b/lib/rpmgi.c
@@ -223,29 +223,13 @@ rpmlog(RPMLOG_DEBUG, "FTS_%s\t%*s %s%s\n", ftsInfoStr(fts->fts_info),
((fts->fts_info == FTS_D || fts->fts_info == FTS_DP) ? "/" : ""));
switch (fts->fts_info) {
- case FTS_D: /* preorder directory */
- break;
- case FTS_DP: /* postorder directory */
- break;
- case FTS_F: /* regular file */
+ case FTS_F:
/* Ignore all but *.rpm files. */
s = fts->fts_name + fts->fts_namelen + 1 - sizeof(".rpm");
if (strcmp(s, ".rpm"))
break;
rpmrc = RPMRC_OK;
break;
- case FTS_NS: /* stat(2) failed */
- case FTS_DNR: /* unreadable directory */
- case FTS_ERR: /* error; errno is set */
- break;
- case FTS_DC: /* directory that causes cycles */
- case FTS_DEFAULT: /* none of the above */
- case FTS_DOT: /* dot or dot-dot */
- case FTS_INIT: /* initialized only */
- case FTS_NSOK: /* no stat(2) requested */
- case FTS_SL: /* symbolic link */
- case FTS_SLNONE: /* symbolic link without target */
- case FTS_W: /* whiteout object */
default:
break;
}