Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 r8d2dd7f2  
    119119{
    120120        char *buf;
    121         errno_t rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, NULL);
     121        int rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, NULL);
    122122       
    123123        if (rc == EOK) {
     
    146146
    147147        char* name = malloc(namesize);
    148         errno_t rc = async_data_write_finalize(writeid, name, namesize);
     148        int rc = async_data_write_finalize(writeid, name, namesize);
    149149        if (rc != EOK) {
    150150                async_answer_0(rid, EINVAL);
     
    152152        }
    153153
    154         int file;
    155         rc = vfs_receive_handle(true, &file);
    156         if (rc != EOK) {
     154        int file = vfs_receive_handle(true);
     155        if (file < 0) {
    157156                async_answer_0(rid, EINVAL);
    158157                return;
     
    173172        char *buf;
    174173        size_t buf_size;
    175         errno_t rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, &buf_size);
     174        int rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, &buf_size);
    176175       
    177176        if (rc == EOK) {
     
    249248
    250249        char* name = malloc(namesize);
    251         errno_t rc = async_data_write_finalize(writeid, name, namesize);
     250        int rc = async_data_write_finalize(writeid, name, namesize);
    252251        if (rc != EOK) {
    253252                async_answer_0(rid, EINVAL);
     
    255254        }
    256255
    257         int file;
    258         rc = vfs_receive_handle(true, &file);
    259         if (rc != EOK) {
     256        int file = vfs_receive_handle(true);
     257        if (file < 0) {
    260258                async_answer_0(rid, EINVAL);
    261259                return;
     
    300298        pcb.inbox_entries = inbox_entries;
    301299       
    302         async_answer_0(rid, EOK);
     300        async_answer_0(rid, rc);
    303301        return 0;
    304302}
     
    349347       
    350348        while (true) {
    351                 errno_t retval;
     349                int retval;
    352350                ipc_call_t call;
    353351                ipc_callid_t callid = async_get_call(&call);
     
    395393        /* Introduce this task to the NS (give it our task ID). */
    396394        task_id_t id = task_get_id();
    397         errno_t rc = ns_intro(id);
     395        int rc = ns_intro(id);
    398396        if (rc != EOK)
    399397                return rc;
Note: See TracChangeset for help on using the changeset viewer.