mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 13:22:48 +00:00
Remove some dead assignments, fix some declarations.
This commit is contained in:
parent
e15da0400a
commit
0d722d6394
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201111
@ -243,7 +243,6 @@ output_code(struct archive_write *a, int ocode)
|
|||||||
int bits, ret, clear_flg, bit_offset;
|
int bits, ret, clear_flg, bit_offset;
|
||||||
|
|
||||||
clear_flg = ocode == CLEAR;
|
clear_flg = ocode == CLEAR;
|
||||||
bits = state->code_len;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Since ocode is always >= 8 bits, only need to mask the first
|
* 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;
|
ssize_t block_length, target_block_length, bytes_written;
|
||||||
int ret;
|
int ret;
|
||||||
struct private_data *state;
|
struct private_data *state;
|
||||||
unsigned tocopy;
|
size_t tocopy;
|
||||||
|
|
||||||
state = (struct private_data *)a->compressor.data;
|
state = (struct private_data *)a->compressor.data;
|
||||||
ret = 0;
|
|
||||||
if (a->client_writer == NULL) {
|
if (a->client_writer == NULL) {
|
||||||
archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER,
|
archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER,
|
||||||
"No write callback is registered? "
|
"No write callback is registered? "
|
||||||
|
Loading…
Reference in New Issue
Block a user