Changeset 62140db in mainline for uspace/lib


Ignore:
Timestamp:
2009-06-16T21:53:42Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
61d2315
Parents:
0471786
Message:

Fix assorted warnings and tiny glitches.

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libblock/libblock.c

    r0471786 r62140db  
    475475                }
    476476               
    477                 if (*bufpos == *buflen) {
     477                if (*bufpos == (off_t) *buflen) {
    478478                        /* Refill the communication buffer with a new block. */
    479479                        ipcarg_t retval;
     
    481481                            *pos / block_size, block_size, &retval);
    482482                        if ((rc != EOK) || (retval != EOK))
    483                                 return (rc != EOK ? rc : retval);
     483                                return (rc != EOK ? rc : (int) retval);
    484484                       
    485485                        *bufpos = 0;
  • uspace/lib/libc/generic/devmap.c

    r0471786 r62140db  
    194194        if (retval != EOK) {
    195195                if (handle != NULL)
    196                         *handle = -1;
     196                        *handle = (dev_handle_t) -1;
    197197                return retval;
    198198        }
Note: See TracChangeset for help on using the changeset viewer.