diff options
author | Denys Vlasenko | 2013-11-29 16:43:33 +0100 |
---|---|---|
committer | Denys Vlasenko | 2013-11-29 16:43:33 +0100 |
commit | 9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1 (patch) | |
tree | a950fa73740d345e11ba1ce90f4fc39ee12516e6 /archival/libarchive/bz | |
parent | 1a7256ac38284caffd2a0de2250364369059be69 (diff) | |
download | busybox-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.zip busybox-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.tar.gz |
fix assorted unused code and wrong format specs found by cppchekc (bug 6716)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive/bz')
-rw-r--r-- | archival/libarchive/bz/compress.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c index a7dd72d..23de9d3 100644 --- a/archival/libarchive/bz/compress.c +++ b/archival/libarchive/bz/compress.c @@ -249,7 +249,7 @@ void generateMTFValues(EState* s) static NOINLINE void sendMTFValues(EState* s) { - int32_t v, t, i, j, gs, ge, totc, bt, bc, iter; + int32_t v, t, i, j, gs, ge, bt, bc, iter; int32_t nSelectors, alphaSize, minLen, maxLen, selCtr; int32_t nGroups; @@ -345,7 +345,6 @@ void sendMTFValues(EState* s) } #endif nSelectors = 0; - totc = 0; gs = 0; while (1) { /*--- Set group start & end marks. --*/ @@ -411,7 +410,6 @@ void sendMTFValues(EState* s) bt = t; } } - totc += bc; fave[bt]++; s->selector[nSelectors] = bt; nSelectors++; |