Changeset 25a179e in mainline for uspace/srv/locsrv/locsrv.c


Ignore:
Timestamp:
2017-12-20T19:51:45Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f96b6c8
Parents:
d4a829e
Message:

IPC return values are always errno constants. Adjust types to reflect that.

In principle, IPC server is not allowed to return non-errno values via
the "main" return value, because kernel interprets it (e.g. EHANGUP).
It's still possible to return arbitrary additional return values alongside EOK,
which are not interpreted in normal communication.

File:
1 edited

Legend:

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

    rd4a829e r25a179e  
    599599        }
    600600       
    601         sysarg_t retval = async_data_read_finalize(callid, cat->name,
     601        int retval = async_data_read_finalize(callid, cat->name,
    602602            min(size, act_size));
    603603       
     
    647647        }
    648648       
    649         sysarg_t retval = async_data_read_finalize(callid, fqn,
     649        int retval = async_data_read_finalize(callid, fqn,
    650650            min(size, act_size));
    651651        free(fqn);
     
    694694        }
    695695       
    696         sysarg_t retval = async_data_read_finalize(callid, svc->server->name,
     696        int retval = async_data_read_finalize(callid, svc->server->name,
    697697            min(size, act_size));
    698698       
     
    10001000        fibril_mutex_unlock(&cdir.mutex);
    10011001       
    1002         sysarg_t retval = async_data_read_finalize(callid, id_buf, size);
     1002        int retval = async_data_read_finalize(callid, id_buf, size);
    10031003        free(id_buf);
    10041004       
     
    10471047        }
    10481048       
    1049         sysarg_t retval = async_data_read_finalize(callid, desc, size);
     1049        int retval = async_data_read_finalize(callid, desc, size);
    10501050       
    10511051        free(desc);
     
    11101110        }
    11111111       
    1112         sysarg_t retval = async_data_read_finalize(callid, desc, size);
     1112        int retval = async_data_read_finalize(callid, desc, size);
    11131113       
    11141114        free(desc);
     
    11631163        fibril_mutex_unlock(&cdir.mutex);
    11641164       
    1165         sysarg_t retval = async_data_read_finalize(callid, id_buf, size);
     1165        int 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         sysarg_t retval;
     1280        int retval;
    12811281       
    12821282        svc_id = IPC_GET_ARG1(*icall);
Note: See TracChangeset for help on using the changeset viewer.