Ignore:
File:
1 edited

Legend:

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

    r8d2dd7f2 rb7fd2a0  
    119119{
    120120        char *buf;
    121         int rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, NULL);
     121        errno_t rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, NULL);
    122122       
    123123        if (rc == EOK) {
     
    146146
    147147        char* name = malloc(namesize);
    148         int rc = async_data_write_finalize(writeid, name, namesize);
     148        errno_t rc = async_data_write_finalize(writeid, name, namesize);
    149149        if (rc != EOK) {
    150150                async_answer_0(rid, EINVAL);
     
    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;
     
    172173        char *buf;
    173174        size_t buf_size;
    174         int rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, &buf_size);
     175        errno_t rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, &buf_size);
    175176       
    176177        if (rc == EOK) {
     
    248249
    249250        char* name = malloc(namesize);
    250         int rc = async_data_write_finalize(writeid, name, namesize);
     251        errno_t rc = async_data_write_finalize(writeid, name, namesize);
    251252        if (rc != EOK) {
    252253                async_answer_0(rid, EINVAL);
     
    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;
     
    298300        pcb.inbox_entries = inbox_entries;
    299301       
    300         async_answer_0(rid, rc);
     302        async_answer_0(rid, EOK);
    301303        return 0;
    302304}
     
    347349       
    348350        while (true) {
    349                 int retval;
     351                errno_t retval;
    350352                ipc_call_t call;
    351353                ipc_callid_t callid = async_get_call(&call);
     
    393395        /* Introduce this task to the NS (give it our task ID). */
    394396        task_id_t id = task_get_id();
    395         int rc = ns_intro(id);
     397        errno_t rc = ns_intro(id);
    396398        if (rc != EOK)
    397399                return rc;
Note: See TracChangeset for help on using the changeset viewer.