Changeset 132ab5d1 in mainline for uspace/lib/c/generic/clipboard.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/clipboard.c

    r8bfb163 r132ab5d1  
    4545#include <ipc/services.h>
    4646#include <loc.h>
    47 #include <malloc.h>
     47#include <stdlib.h>
    4848#include <str.h>
    4949
     
    9595 * @param str String to put to clipboard or NULL.
    9696 *
    97  * @return Zero on success or negative error code.
     97 * @return Zero on success or an error code.
    9898 *
    9999 */
     
    104104        if (size == 0) {
    105105                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,
    107107                    CLIPBOARD_TAG_NONE);
    108108                clip_exchange_end(exch);
     
    113113                aid_t req = async_send_1(exch, CLIPBOARD_PUT_DATA, CLIPBOARD_TAG_DATA,
    114114                    NULL);
    115                 sysarg_t rc = async_data_write_start(exch, (void *) str, size);
     115                int rc = async_data_write_start(exch, (void *) str, size);
    116116                clip_exchange_end(exch);
    117117               
    118118                if (rc != EOK) {
    119                         sysarg_t rc_orig;
     119                        int rc_orig;
    120120                        async_wait_for(req, &rc_orig);
    121121                        if (rc_orig == EOK)
     
    137137 * @param str Here pointer to the newly allocated string is stored.
    138138 *
    139  * @return Zero on success or negative error code.
     139 * @return Zero on success or an error code.
    140140 *
    141141 */
     
    148148                sysarg_t size;
    149149                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);
    151151               
    152152                clip_exchange_end(exch);
     
    185185                       
    186186                        if (rc != EOK) {
    187                                 sysarg_t rc_orig;
     187                                int rc_orig;
    188188                                async_wait_for(req, &rc_orig);
    189189                                if (rc_orig == EOK)
Note: See TracChangeset for help on using the changeset viewer.