Changeset f77c1c9 in mainline for uspace/srv/loader/main.c


Ignore:
Timestamp:
2017-12-08T21:03:35Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c19a5a59
Parents:
c1694b6b
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 19:44:55)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
Message:

Return VFS handles separately from error codes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/main.c

    rc1694b6b rf77c1c9  
    152152        }
    153153
    154         int file = vfs_receive_handle(true);
    155         if (file < 0) {
     154        int file;
     155        rc = vfs_receive_handle(true, &file);
     156        if (rc != EOK) {
    156157                async_answer_0(rid, EINVAL);
    157158                return;
     
    254255        }
    255256
    256         int file = vfs_receive_handle(true);
    257         if (file < 0) {
     257        int file;
     258        rc = vfs_receive_handle(true, &file);
     259        if (rc != EOK) {
    258260                async_answer_0(rid, EINVAL);
    259261                return;
Note: See TracChangeset for help on using the changeset viewer.