diff options
Diffstat (limited to 'archival')
-rw-r--r-- | archival/libarchive/bz/compress.c | 4 | ||||
-rw-r--r-- | archival/libarchive/decompress_bunzip2.c | 1 | ||||
-rw-r--r-- | archival/libarchive/decompress_gunzip.c | 2 | ||||
-rw-r--r-- | archival/libarchive/lzo1x_9x.c | 1 |
4 files changed, 2 insertions, 6 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c index a7dd72d9e..23de9d3f5 100644 --- a/archival/libarchive/bz/compress.c +++ b/archival/libarchive/bz/compress.c | |||
@@ -249,7 +249,7 @@ void generateMTFValues(EState* s) | |||
249 | static NOINLINE | 249 | static NOINLINE |
250 | void sendMTFValues(EState* s) | 250 | void sendMTFValues(EState* s) |
251 | { | 251 | { |
252 | int32_t v, t, i, j, gs, ge, totc, bt, bc, iter; | 252 | int32_t v, t, i, j, gs, ge, bt, bc, iter; |
253 | int32_t nSelectors, alphaSize, minLen, maxLen, selCtr; | 253 | int32_t nSelectors, alphaSize, minLen, maxLen, selCtr; |
254 | int32_t nGroups; | 254 | int32_t nGroups; |
255 | 255 | ||
@@ -345,7 +345,6 @@ void sendMTFValues(EState* s) | |||
345 | } | 345 | } |
346 | #endif | 346 | #endif |
347 | nSelectors = 0; | 347 | nSelectors = 0; |
348 | totc = 0; | ||
349 | gs = 0; | 348 | gs = 0; |
350 | while (1) { | 349 | while (1) { |
351 | /*--- Set group start & end marks. --*/ | 350 | /*--- Set group start & end marks. --*/ |
@@ -411,7 +410,6 @@ void sendMTFValues(EState* s) | |||
411 | bt = t; | 410 | bt = t; |
412 | } | 411 | } |
413 | } | 412 | } |
414 | totc += bc; | ||
415 | fave[bt]++; | 413 | fave[bt]++; |
416 | s->selector[nSelectors] = bt; | 414 | s->selector[nSelectors] = bt; |
417 | nSelectors++; | 415 | nSelectors++; |
diff --git a/archival/libarchive/decompress_bunzip2.c b/archival/libarchive/decompress_bunzip2.c index fb1f2921f..6396fe40d 100644 --- a/archival/libarchive/decompress_bunzip2.c +++ b/archival/libarchive/decompress_bunzip2.c | |||
@@ -818,7 +818,6 @@ static char *const bunzip_errors[] = { | |||
818 | /* Dumb little test thing, decompress stdin to stdout */ | 818 | /* Dumb little test thing, decompress stdin to stdout */ |
819 | int main(int argc, char **argv) | 819 | int main(int argc, char **argv) |
820 | { | 820 | { |
821 | int i; | ||
822 | char c; | 821 | char c; |
823 | 822 | ||
824 | int i = unpack_bz2_stream(0, 1); | 823 | int i = unpack_bz2_stream(0, 1); |
diff --git a/archival/libarchive/decompress_gunzip.c b/archival/libarchive/decompress_gunzip.c index 4e6b138c3..7c6f38ec3 100644 --- a/archival/libarchive/decompress_gunzip.c +++ b/archival/libarchive/decompress_gunzip.c | |||
@@ -336,7 +336,7 @@ static int huft_build(const unsigned *b, const unsigned n, | |||
336 | } | 336 | } |
337 | 337 | ||
338 | /* Find minimum and maximum length, bound *m by those */ | 338 | /* Find minimum and maximum length, bound *m by those */ |
339 | for (j = 1; (c[j] == 0) && (j <= BMAX); j++) | 339 | for (j = 1; (j <= BMAX) && (c[j] == 0); j++) |
340 | continue; | 340 | continue; |
341 | k = j; /* minimum code length */ | 341 | k = j; /* minimum code length */ |
342 | for (i = BMAX; (c[i] == 0) && i; i--) | 342 | for (i = BMAX; (c[i] == 0) && i; i--) |
diff --git a/archival/libarchive/lzo1x_9x.c b/archival/libarchive/lzo1x_9x.c index 3e331984d..2b490ae83 100644 --- a/archival/libarchive/lzo1x_9x.c +++ b/archival/libarchive/lzo1x_9x.c | |||
@@ -466,7 +466,6 @@ static int find_match(lzo1x_999_t *c, lzo_swd_p s, | |||
466 | } | 466 | } |
467 | 467 | ||
468 | s->m_len = 1; | 468 | s->m_len = 1; |
469 | s->m_len = 1; | ||
470 | #ifdef SWD_BEST_OFF | 469 | #ifdef SWD_BEST_OFF |
471 | if (s->use_best_off) | 470 | if (s->use_best_off) |
472 | memset(s->best_pos, 0, sizeof(s->best_pos)); | 471 | memset(s->best_pos, 0, sizeof(s->best_pos)); |