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