Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/compress/inflate.c

    rb7fd2a0 r8d2dd7f2  
    270270 *
    271271 */
    272 static errno_t inflate_stored(inflate_state_t *state)
     272static int inflate_stored(inflate_state_t *state)
    273273{
    274274        /* Discard bits in the bit buffer */
     
    316316 *
    317317 */
    318 static errno_t huffman_decode(inflate_state_t *state, huffman_t *huffman,
     318static int huffman_decode(inflate_state_t *state, huffman_t *huffman,
    319319    uint16_t *symbol)
    320320{
     
    418418 *
    419419 */
    420 static errno_t inflate_codes(inflate_state_t *state, huffman_t* len_code,
     420static int inflate_codes(inflate_state_t *state, huffman_t* len_code,
    421421    huffman_t* dist_code)
    422422{
     
    424424       
    425425        do {
    426                 errno_t err = huffman_decode(state, len_code, &symbol);
     426                int err = huffman_decode(state, len_code, &symbol);
    427427                if (err != EOK) {
    428428                        /* Error decoding */
     
    484484 *
    485485 */
    486 static errno_t inflate_fixed(inflate_state_t *state, huffman_t *len_code,
     486static int inflate_fixed(inflate_state_t *state, huffman_t *len_code,
    487487    huffman_t *dist_code)
    488488{
     
    501501 *
    502502 */
    503 static errno_t inflate_dynamic(inflate_state_t *state)
     503static int inflate_dynamic(inflate_state_t *state)
    504504{
    505505        uint16_t length[MAX_CODE];
     
    551551        while (index < nlen + ndist) {
    552552                uint16_t symbol;
    553                 errno_t err = huffman_decode(state, &dyn_len_code, &symbol);
     553                int err = huffman_decode(state, &dyn_len_code, &symbol);
    554554                if (err != EOK)
    555555                        return EOK;
     
    618618 *
    619619 */
    620 errno_t inflate(void *src, size_t srclen, void *dest, size_t destlen)
     620int inflate(void *src, size_t srclen, void *dest, size_t destlen)
    621621{
    622622        /* Initialize the state */
     
    637637       
    638638        uint16_t last;
    639         errno_t ret = EOK;
     639        int ret = 0;
    640640       
    641641        do {
Note: See TracChangeset for help on using the changeset viewer.