Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/ns/service.c

    r5e801dc r4f13e19  
    6565} hashed_iface_t;
    6666
    67 static size_t service_key_hash(const void *key)
    68 {
    69         const service_t *srv = key;
    70         return *srv;
     67static size_t service_key_hash(void *key)
     68{
     69        return *(service_t *) key;
    7170}
    7271
     
    7978}
    8079
    81 static bool service_key_equal(const void *key, const ht_link_t *item)
    82 {
    83         const service_t *srv = key;
     80static bool service_key_equal(void *key, const ht_link_t *item)
     81{
    8482        hashed_service_t *service =
    8583            hash_table_get_inst(item, hashed_service_t, link);
    8684
    87         return service->service == *srv;
    88 }
    89 
    90 static size_t iface_key_hash(const void *key)
    91 {
    92         const iface_t *iface = key;
    93         return *iface;
     85        return service->service == *(service_t *) key;
     86}
     87
     88static size_t iface_key_hash(void *key)
     89{
     90        return *(iface_t *) key;
    9491}
    9592
     
    10299}
    103100
    104 static bool iface_key_equal(const void *key, const ht_link_t *item)
    105 {
    106         const iface_t *kiface = key;
     101static bool iface_key_equal(void *key, const ht_link_t *item)
     102{
    107103        hashed_iface_t *iface =
    108104            hash_table_get_inst(item, hashed_iface_t, link);
    109105
    110         return iface->iface == *kiface;
     106        return iface->iface == *(iface_t *) key;
    111107}
    112108
     
    158154{
    159155        async_exch_t *exch = async_exchange_begin(sess);
    160         async_forward_1(call, exch, iface, ipc_get_arg3(call), IPC_FF_NONE);
     156        async_forward_1(call, exch, iface, IPC_GET_ARG3(*call), IPC_FF_NONE);
    161157        async_exchange_end(exch);
    162158}
     
    370366void ns_service_forward(service_t service, iface_t iface, ipc_call_t *call)
    371367{
    372         sysarg_t flags = ipc_get_arg4(call);
     368        sysarg_t flags = IPC_GET_ARG4(*call);
    373369        errno_t retval;
    374370
Note: See TracChangeset for help on using the changeset viewer.