Changeset 5a6cc679 in mainline for uspace/srv/locsrv/locsrv.c


Ignore:
Timestamp:
2018-01-31T02:21:24Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/locsrv/locsrv.c

    r132ab5d1 r5a6cc679  
    356356         * Get server name
    357357         */
    358         int rc = async_data_write_accept((void **) &server->name, true, 0,
     358        errno_t rc = async_data_write_accept((void **) &server->name, true, 0,
    359359            LOC_NAME_MAXLEN, 0, NULL);
    360360        if (rc != EOK) {
     
    410410 *
    411411 */
    412 static int loc_server_unregister(loc_server_t *server)
     412static errno_t loc_server_unregister(loc_server_t *server)
    413413{
    414414        if (server == NULL)
     
    471471        /* Get fqsn */
    472472        char *fqsn;
    473         int rc = async_data_write_accept((void **) &fqsn, true, 0,
     473        errno_t rc = async_data_write_accept((void **) &fqsn, true, 0,
    474474            LOC_NAME_MAXLEN, 0, NULL);
    475475        if (rc != EOK) {
     
    599599        }
    600600       
    601         int retval = async_data_read_finalize(callid, cat->name,
     601        errno_t retval = async_data_read_finalize(callid, cat->name,
    602602            min(size, act_size));
    603603       
     
    647647        }
    648648       
    649         int retval = async_data_read_finalize(callid, fqn,
     649        errno_t retval = async_data_read_finalize(callid, fqn,
    650650            min(size, act_size));
    651651        free(fqn);
     
    694694        }
    695695       
    696         int retval = async_data_read_finalize(callid, svc->server->name,
     696        errno_t retval = async_data_read_finalize(callid, svc->server->name,
    697697            min(size, act_size));
    698698       
     
    743743       
    744744        /* Get fqsn */
    745         int rc = async_data_write_accept((void **) &fqsn, true, 0,
     745        errno_t rc = async_data_write_accept((void **) &fqsn, true, 0,
    746746            LOC_NAME_MAXLEN, 0, NULL);
    747747        if (rc != EOK) {
     
    806806       
    807807        /* Get service name */
    808         int rc = async_data_write_accept((void **) &name, true, 0,
     808        errno_t rc = async_data_write_accept((void **) &name, true, 0,
    809809            LOC_NAME_MAXLEN, 0, NULL);
    810810        if (rc != EOK) {
     
    851851 * events.
    852852 *
    853  * On success, answer will contain EOK int retval.
     853 * On success, answer will contain EOK errno_t retval.
    854854 * On failure, error code will be sent in retval.
    855855 *
     
    895895/** Find ID for category specified by name.
    896896 *
    897  * On success, answer will contain EOK int retval and service ID in arg1.
     897 * On success, answer will contain EOK errno_t retval and service ID in arg1.
    898898 * On failure, error code will be sent in retval.
    899899 *
     
    905905       
    906906        /* Get service name */
    907         int rc = async_data_write_accept((void **) &name, true, 0,
     907        errno_t rc = async_data_write_accept((void **) &name, true, 0,
    908908            LOC_NAME_MAXLEN, 0, NULL);
    909909        if (rc != EOK) {
     
    972972        size_t size;
    973973        size_t act_size;
    974         int rc;
     974        errno_t rc;
    975975       
    976976        if (!async_data_read_receive(&callid, &size)) {
     
    10001000        fibril_mutex_unlock(&cdir.mutex);
    10011001       
    1002         int retval = async_data_read_finalize(callid, id_buf, size);
     1002        errno_t retval = async_data_read_finalize(callid, id_buf, size);
    10031003        free(id_buf);
    10041004       
     
    10471047        }
    10481048       
    1049         int retval = async_data_read_finalize(callid, desc, size);
     1049        errno_t retval = async_data_read_finalize(callid, desc, size);
    10501050       
    10511051        free(desc);
     
    11101110        }
    11111111       
    1112         int retval = async_data_read_finalize(callid, desc, size);
     1112        errno_t retval = async_data_read_finalize(callid, desc, size);
    11131113       
    11141114        free(desc);
     
    11231123        size_t size;
    11241124        size_t act_size;
    1125         int rc;
     1125        errno_t rc;
    11261126       
    11271127        if (!async_data_read_receive(&callid, &size)) {
     
    11631163        fibril_mutex_unlock(&cdir.mutex);
    11641164       
    1165         int retval = async_data_read_finalize(callid, id_buf, size);
     1165        errno_t retval = async_data_read_finalize(callid, id_buf, size);
    11661166        free(id_buf);
    11671167       
     
    12781278        catid_t cat_id;
    12791279        service_id_t svc_id;
    1280         int retval;
     1280        errno_t retval;
    12811281       
    12821282        svc_id = IPC_GET_ARG1(*icall);
     
    15311531       
    15321532        port_id_t port;
    1533         int rc = async_create_port(INTERFACE_LOC_SUPPLIER,
     1533        errno_t rc = async_create_port(INTERFACE_LOC_SUPPLIER,
    15341534            loc_connection_supplier, NULL, &port);
    15351535        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.