Changeset 531695f in mainline
- Timestamp:
- 2009-12-13T15:08:56Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fc6dd18
- Parents:
- 8aa42e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/clip/clip.c
r8aa42e3 r531695f 46 46 static void clip_put_data(ipc_callid_t rid, ipc_call_t *request) 47 47 { 48 ipc_callid_t callid; 48 char *data; 49 int rc; 49 50 size_t size; 50 51 … … 64 65 break; 65 66 case CLIPBOARD_TAG_BLOB: 66 if (!async_data_write_receive(&callid, &size)) { 67 ipc_answer_0(callid, EINVAL); 68 ipc_answer_0(rid, EINVAL); 69 break; 70 } 71 72 char *data = malloc(size); 73 if (!data) { 74 ipc_answer_0(callid, ENOMEM); 75 ipc_answer_0(rid, ENOMEM); 76 break; 77 } 78 79 ipcarg_t retval = async_data_write_finalize(callid, data, size); 80 if (retval != EOK) { 81 ipc_answer_0(rid, retval); 82 free(data); 67 rc = async_data_blob_receive(&data, 0, &size); 68 if (rc != EOK) { 69 ipc_answer_0(rid, rc); 83 70 break; 84 71 }
Note:
See TracChangeset
for help on using the changeset viewer.