Changeset 7fa8589 in mainline for uspace/lib/c/generic/clipboard.c
- Timestamp:
- 2020-01-09T01:04:58Z (4 years ago)
- Children:
- bcd7775
- Parents:
- 76c8209
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2020-01-05 20:21:10)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2020-01-09 01:04:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/clipboard.c
r76c8209 r7fa8589 108 108 clip_exchange_end(exch); 109 109 110 return (errno_t)rc;110 return rc; 111 111 } else { 112 112 async_exch_t *exch = clip_exchange_begin(); … … 120 120 async_wait_for(req, &rc_orig); 121 121 if (rc_orig == EOK) 122 return (errno_t)rc;122 return rc; 123 123 else 124 return (errno_t)rc_orig;124 return rc_orig; 125 125 } 126 126 127 127 async_wait_for(req, &rc); 128 128 129 return (errno_t)rc;129 return rc; 130 130 } 131 131 } … … 153 153 154 154 if (rc != EOK) 155 return (errno_t)rc;155 return rc; 156 156 157 157 char *sbuf; … … 176 176 clip_exchange_end(exch); 177 177 178 if ( (errno_t)rc == EOVERFLOW) {178 if (rc == EOVERFLOW) { 179 179 /* 180 180 * The data in the clipboard has changed since … … 188 188 async_wait_for(req, &rc_orig); 189 189 if (rc_orig == EOK) 190 return (errno_t)rc;190 return rc; 191 191 else 192 return (errno_t)rc_orig;192 return rc_orig; 193 193 } 194 194
Note:
See TracChangeset
for help on using the changeset viewer.