Changes in uspace/srv/hid/console/console.c [eda925a:b3d513f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
reda925a rb3d513f 475 475 static void cons_write(console_t *cons, ipc_callid_t rid, ipc_call_t *request) 476 476 { 477 void *buf;477 ipc_callid_t callid; 478 478 size_t size; 479 int rc = async_data_write_accept(&buf, false, 0, 0, 0, &size); 480 481 if (rc != EOK) { 482 ipc_answer_0(rid, rc); 479 if (!async_data_write_receive(&callid, &size)) { 480 ipc_answer_0(callid, EINVAL); 481 ipc_answer_0(rid, EINVAL); 483 482 return; 484 483 } 484 485 char *buf = (char *) malloc(size); 486 if (buf == NULL) { 487 ipc_answer_0(callid, ENOMEM); 488 ipc_answer_0(rid, ENOMEM); 489 return; 490 } 491 492 (void) async_data_write_finalize(callid, buf, size); 485 493 486 494 async_serialize_start();
Note:
See TracChangeset
for help on using the changeset viewer.