Changes in uspace/lib/c/generic/clipboard.c [8d6bcc8c:cde999a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/clipboard.c
r8d6bcc8c rcde999a 45 45 #include <ipc/services.h> 46 46 #include <loc.h> 47 #include < malloc.h>47 #include <stdlib.h> 48 48 #include <str.h> 49 49 … … 95 95 * @param str String to put to clipboard or NULL. 96 96 * 97 * @return Zero on success or negativeerror code.97 * @return Zero on success or an error code. 98 98 * 99 99 */ … … 104 104 if (size == 0) { 105 105 async_exch_t *exch = clip_exchange_begin(); 106 sysarg_t rc = async_req_1_0(exch, CLIPBOARD_PUT_DATA,106 int rc = async_req_1_0(exch, CLIPBOARD_PUT_DATA, 107 107 CLIPBOARD_TAG_NONE); 108 108 clip_exchange_end(exch); … … 113 113 aid_t req = async_send_1(exch, CLIPBOARD_PUT_DATA, CLIPBOARD_TAG_DATA, 114 114 NULL); 115 sysarg_t rc = async_data_write_start(exch, (void *) str, size);115 int rc = async_data_write_start(exch, (void *) str, size); 116 116 clip_exchange_end(exch); 117 117 118 118 if (rc != EOK) { 119 sysarg_t rc_orig;119 int rc_orig; 120 120 async_wait_for(req, &rc_orig); 121 121 if (rc_orig == EOK) … … 137 137 * @param str Here pointer to the newly allocated string is stored. 138 138 * 139 * @return Zero on success or negativeerror code.139 * @return Zero on success or an error code. 140 140 * 141 141 */ … … 148 148 sysarg_t size; 149 149 sysarg_t tag; 150 sysarg_t rc = async_req_0_2(exch, CLIPBOARD_CONTENT, &size, &tag);150 int rc = async_req_0_2(exch, CLIPBOARD_CONTENT, &size, &tag); 151 151 152 152 clip_exchange_end(exch); … … 185 185 186 186 if (rc != EOK) { 187 sysarg_t rc_orig;187 int rc_orig; 188 188 async_wait_for(req, &rc_orig); 189 189 if (rc_orig == EOK)
Note:
See TracChangeset
for help on using the changeset viewer.