Changeset a92da0a in mainline for uspace/lib/libc/generic/ipc.c


Ignore:
Timestamp:
2007-12-23T21:46:52Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7dab6b8
Parents:
a55d5f9f
Message:

Reimplement VFS_READ using IPC_M_DATA_READ.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/ipc.c

    ra55d5f9f ra92da0a  
    690690 * @param callid        Storage where the hash of the IPC_M_DATA_READ call will
    691691 *                      be stored.
    692  * @param size          Storage where the maximum size will be stored.
     692 * @param size          Storage where the maximum size will be stored. Can be
     693 *                      NULL.
    693694 *
    694695 * @return              Non-zero on success, zero on failure.
     
    703704        if (IPC_GET_METHOD(data) != IPC_M_DATA_READ)
    704705                return 0;
    705         assert(size);
    706         *size = (size_t) IPC_GET_ARG2(data);
     706        if (size)
     707                *size = (size_t) IPC_GET_ARG2(data);
    707708        return 1;
    708709}
Note: See TracChangeset for help on using the changeset viewer.