Changeset badbd888 in mainline


Ignore:
Timestamp:
2007-12-30T21:42:42Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3115355
Parents:
449c246
Message:

Actually use the nbyte argument in both read() and write().
Fix warnings in read() and write().

File:
1 edited

Legend:

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

    r449c246 rbadbd888  
    144144        }
    145145        req = async_send_1(vfs_phone, VFS_READ, fildes, &answer);
    146         if (ipc_data_read_send(vfs_phone, buf, sizeof(buf)) != EOK) {
     146        if (ipc_data_read_send(vfs_phone, (void *)buf, nbyte) != EOK) {
    147147                async_wait_for(req, NULL);
    148148                async_serialize_end();
     
    174174        }
    175175        req = async_send_1(vfs_phone, VFS_WRITE, fildes, &answer);
    176         if (ipc_data_write_send(vfs_phone, buf, sizeof(buf)) != EOK) {
     176        if (ipc_data_write_send(vfs_phone, (void *)buf, nbyte) != EOK) {
    177177                async_wait_for(req, NULL);
    178178                async_serialize_end();
Note: See TracChangeset for help on using the changeset viewer.