diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-09-11 09:25:09 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-09-11 09:25:09 +0300 |
commit | 18a4233a53d9b82abac7db7d7804684c5fea9c2c (patch) | |
tree | 4b316054c2b0ad72284cca4ce41edb3402b45598 /src/liblzma/lz/lz_encoder.c | |
parent | Add OS/2-specific code to physmem.h. (diff) | |
download | xz-18a4233a53d9b82abac7db7d7804684c5fea9c2c.tar.xz |
Fix a couple of warnings.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/lz/lz_encoder.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/liblzma/lz/lz_encoder.c b/src/liblzma/lz/lz_encoder.c index 5437546d..5fd03e84 100644 --- a/src/liblzma/lz/lz_encoder.c +++ b/src/liblzma/lz/lz_encoder.c @@ -84,23 +84,20 @@ fill_window(lzma_coder *coder, lzma_allocator *allocator, const uint8_t *in, // (which I find cleanest), but we need size_t here when filling // the history window. size_t write_pos = coder->mf.write_pos; - size_t in_used; lzma_ret ret; if (coder->next.code == NULL) { // Not using a filter, simply memcpy() as much as possible. - in_used = lzma_bufcpy(in, in_pos, in_size, coder->mf.buffer, + lzma_bufcpy(in, in_pos, in_size, coder->mf.buffer, &write_pos, coder->mf.size); ret = action != LZMA_RUN && *in_pos == in_size ? LZMA_STREAM_END : LZMA_OK; } else { - const size_t in_start = *in_pos; ret = coder->next.code(coder->next.coder, allocator, in, in_pos, in_size, coder->mf.buffer, &write_pos, coder->mf.size, action); - in_used = *in_pos - in_start; } coder->mf.write_pos = write_pos; |