Changes in uspace/srv/ns/task.c [5e801dc:6769005] in mainline


Ignore:
File:
1 edited

Legend:

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

    r5e801dc r6769005  
    5454} hashed_task_t;
    5555
    56 static size_t task_key_hash(const void *key)
    57 {
    58         const task_id_t *tid = key;
    59         return *tid;
    60 }
    61 
    62 static size_t task_hash(const ht_link_t *item)
     56static size_t task_key_hash(void *key)
     57{
     58        return *(task_id_t *)key;
     59}
     60
     61static size_t task_hash(const ht_link_t  *item)
    6362{
    6463        hashed_task_t *ht = hash_table_get_inst(item, hashed_task_t, link);
     
    6665}
    6766
    68 static bool task_key_equal(const void *key, const ht_link_t *item)
    69 {
    70         const task_id_t *tid = key;
     67static bool task_key_equal(void *key, const ht_link_t *item)
     68{
    7169        hashed_task_t *ht = hash_table_get_inst(item, hashed_task_t, link);
    72         return ht->id == *tid;
     70        return ht->id == *(task_id_t *)key;
    7371}
    7472
     
    9997/* label-to-id hash table operations */
    10098
    101 static size_t p2i_key_hash(const void *key)
    102 {
    103         const sysarg_t *label = key;
    104         return *label;
     99static size_t p2i_key_hash(void *key)
     100{
     101        sysarg_t label = *(sysarg_t *)key;
     102        return label;
    105103}
    106104
     
    111109}
    112110
    113 static bool p2i_key_equal(const void *key, const ht_link_t *item)
    114 {
    115         const sysarg_t *label = key;
     111static bool p2i_key_equal(void *key, const ht_link_t *item)
     112{
     113        sysarg_t label = *(sysarg_t *)key;
    116114        p2i_entry_t *entry = hash_table_get_inst(item, p2i_entry_t, link);
    117115
    118         return (*label == entry->label);
     116        return (label == entry->label);
    119117}
    120118
     
    227225errno_t ns_task_id_intro(ipc_call_t *call)
    228226{
    229         task_id_t id = MERGE_LOUP32(ipc_get_arg1(call), ipc_get_arg2(call));
     227        task_id_t id = MERGE_LOUP32(IPC_GET_ARG1(*call), IPC_GET_ARG2(*call));
    230228
    231229        ht_link_t *link = hash_table_find(&phone_to_id, &call->request_label);
     
    291289        ht->finished = true;
    292290        ht->have_rval = true;
    293         ht->retval = ipc_get_arg1(call);
     291        ht->retval = IPC_GET_ARG1(*call);
    294292
    295293        process_pending_wait();
Note: See TracChangeset for help on using the changeset viewer.