Changeset 07e01e6 in mainline


Ignore:
Timestamp:
2008-02-21T21:09:21Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fdb7795
Parents:
d1ce550
Message:

Prevent read() and write() from returning an uninitialized error return value.

File:
1 edited

Legend:

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

    rd1ce550 r07e01e6  
    176176        }
    177177        req = async_send_1(vfs_phone, VFS_READ, fildes, &answer);
    178         if (ipc_data_read_start(vfs_phone, (void *)buf, nbyte) != EOK) {
     178        rc = ipc_data_read_start(vfs_phone, (void *)buf, nbyte);
     179        if (rc != EOK) {
    179180                async_wait_for(req, NULL);
    180181                async_serialize_end();
     
    209210        }
    210211        req = async_send_1(vfs_phone, VFS_WRITE, fildes, &answer);
    211         if (ipc_data_write_start(vfs_phone, (void *)buf, nbyte) != EOK) {
     212        rc = ipc_data_write_start(vfs_phone, (void *)buf, nbyte);
     213        if (rc != EOK) {
    212214                async_wait_for(req, NULL);
    213215                async_serialize_end();
Note: See TracChangeset for help on using the changeset viewer.