Changes in uspace/srv/loader/main.c [b7fd2a0:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/main.c
rb7fd2a0 r8d2dd7f2 119 119 { 120 120 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); 122 122 123 123 if (rc == EOK) { … … 146 146 147 147 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); 149 149 if (rc != EOK) { 150 150 async_answer_0(rid, EINVAL); … … 152 152 } 153 153 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) { 157 156 async_answer_0(rid, EINVAL); 158 157 return; … … 173 172 char *buf; 174 173 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); 176 175 177 176 if (rc == EOK) { … … 249 248 250 249 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); 252 251 if (rc != EOK) { 253 252 async_answer_0(rid, EINVAL); … … 255 254 } 256 255 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) { 260 258 async_answer_0(rid, EINVAL); 261 259 return; … … 300 298 pcb.inbox_entries = inbox_entries; 301 299 302 async_answer_0(rid, EOK);300 async_answer_0(rid, rc); 303 301 return 0; 304 302 } … … 349 347 350 348 while (true) { 351 errno_t retval;349 int retval; 352 350 ipc_call_t call; 353 351 ipc_callid_t callid = async_get_call(&call); … … 395 393 /* Introduce this task to the NS (give it our task ID). */ 396 394 task_id_t id = task_get_id(); 397 errno_t rc = ns_intro(id);395 int rc = ns_intro(id); 398 396 if (rc != EOK) 399 397 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.