Changes in uspace/lib/compress/inflate.c [b7fd2a0:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/compress/inflate.c
rb7fd2a0 r8d2dd7f2 270 270 * 271 271 */ 272 static errno_t inflate_stored(inflate_state_t *state)272 static int inflate_stored(inflate_state_t *state) 273 273 { 274 274 /* Discard bits in the bit buffer */ … … 316 316 * 317 317 */ 318 static errno_t huffman_decode(inflate_state_t *state, huffman_t *huffman,318 static int huffman_decode(inflate_state_t *state, huffman_t *huffman, 319 319 uint16_t *symbol) 320 320 { … … 418 418 * 419 419 */ 420 static errno_t inflate_codes(inflate_state_t *state, huffman_t* len_code,420 static int inflate_codes(inflate_state_t *state, huffman_t* len_code, 421 421 huffman_t* dist_code) 422 422 { … … 424 424 425 425 do { 426 errno_t err = huffman_decode(state, len_code, &symbol);426 int err = huffman_decode(state, len_code, &symbol); 427 427 if (err != EOK) { 428 428 /* Error decoding */ … … 484 484 * 485 485 */ 486 static errno_t inflate_fixed(inflate_state_t *state, huffman_t *len_code,486 static int inflate_fixed(inflate_state_t *state, huffman_t *len_code, 487 487 huffman_t *dist_code) 488 488 { … … 501 501 * 502 502 */ 503 static errno_t inflate_dynamic(inflate_state_t *state)503 static int inflate_dynamic(inflate_state_t *state) 504 504 { 505 505 uint16_t length[MAX_CODE]; … … 551 551 while (index < nlen + ndist) { 552 552 uint16_t symbol; 553 errno_t err = huffman_decode(state, &dyn_len_code, &symbol);553 int err = huffman_decode(state, &dyn_len_code, &symbol); 554 554 if (err != EOK) 555 555 return EOK; … … 618 618 * 619 619 */ 620 errno_t inflate(void *src, size_t srclen, void *dest, size_t destlen)620 int inflate(void *src, size_t srclen, void *dest, size_t destlen) 621 621 { 622 622 /* Initialize the state */ … … 637 637 638 638 uint16_t last; 639 errno_t ret = EOK;639 int ret = 0; 640 640 641 641 do {
Note:
See TracChangeset
for help on using the changeset viewer.