b_method 5th argument to f_decompress

l_lx_exec.c l_lx_pti.c l_lx_sep.c l_lx_sh.c

committer: jreiser <jreiser> 1131565060 +0000
This commit is contained in:
John Reiser
2005-11-09 19:37:40 +00:00
parent ac441fd1cf
commit 910e18fb22
4 changed files with 12 additions and 10 deletions
+3 -2
View File
@@ -108,7 +108,7 @@ do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
typedef int f_expand(
const nrv_byte *, nrv_uint,
nrv_byte *, nrv_uint * );
nrv_byte *, nrv_uint *, int method );
static void
unpackExtent(
@@ -146,7 +146,8 @@ ERR_LAB
if (h.sz_cpr < h.sz_unc) { // Decompress block
nrv_uint out_len;
int const j = (*f_decompress)(xi->buf, h.sz_cpr, xo->buf, &out_len);
int const j = (*f_decompress)((unsigned char *)xi->buf, h.sz_cpr,
(unsigned char *)xo->buf, &out_len, h.b_method );
if (j != 0 || out_len != (nrv_uint)h.sz_unc)
err_exit(7);
xi->buf += h.sz_cpr;