From 0d722d639484ad31c3859d8fa2afdf9f248aae54 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Mon, 28 Dec 2009 03:33:05 +0000 Subject: [PATCH] Remove some dead assignments, fix some declarations. --- lib/libarchive/archive_write_set_compression_compress.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libarchive/archive_write_set_compression_compress.c b/lib/libarchive/archive_write_set_compression_compress.c index fe6b905ee4a5..da44b04f629c 100644 --- a/lib/libarchive/archive_write_set_compression_compress.c +++ b/lib/libarchive/archive_write_set_compression_compress.c @@ -243,7 +243,6 @@ output_code(struct archive_write *a, int ocode) int bits, ret, clear_flg, bit_offset; clear_flg = ocode == CLEAR; - bits = state->code_len; /* * Since ocode is always >= 8 bits, only need to mask the first @@ -426,10 +425,9 @@ archive_compressor_compress_finish(struct archive_write *a) ssize_t block_length, target_block_length, bytes_written; int ret; struct private_data *state; - unsigned tocopy; + size_t tocopy; state = (struct private_data *)a->compressor.data; - ret = 0; if (a->client_writer == NULL) { archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER, "No write callback is registered? "