Changes in uspace/srv/ns/task.c [5e801dc:6769005] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/task.c
r5e801dc r6769005 54 54 } hashed_task_t; 55 55 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) 56 static size_t task_key_hash(void *key) 57 { 58 return *(task_id_t *)key; 59 } 60 61 static size_t task_hash(const ht_link_t *item) 63 62 { 64 63 hashed_task_t *ht = hash_table_get_inst(item, hashed_task_t, link); … … 66 65 } 67 66 68 static bool task_key_equal(const void *key, const ht_link_t *item) 69 { 70 const task_id_t *tid = key; 67 static bool task_key_equal(void *key, const ht_link_t *item) 68 { 71 69 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; 73 71 } 74 72 … … 99 97 /* label-to-id hash table operations */ 100 98 101 static size_t p2i_key_hash( constvoid *key)102 { 103 const sysarg_t *label =key;104 return *label;99 static size_t p2i_key_hash(void *key) 100 { 101 sysarg_t label = *(sysarg_t *)key; 102 return label; 105 103 } 106 104 … … 111 109 } 112 110 113 static bool p2i_key_equal( constvoid *key, const ht_link_t *item)114 { 115 const sysarg_t *label =key;111 static bool p2i_key_equal(void *key, const ht_link_t *item) 112 { 113 sysarg_t label = *(sysarg_t *)key; 116 114 p2i_entry_t *entry = hash_table_get_inst(item, p2i_entry_t, link); 117 115 118 return ( *label == entry->label);116 return (label == entry->label); 119 117 } 120 118 … … 227 225 errno_t ns_task_id_intro(ipc_call_t *call) 228 226 { 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)); 230 228 231 229 ht_link_t *link = hash_table_find(&phone_to_id, &call->request_label); … … 291 289 ht->finished = true; 292 290 ht->have_rval = true; 293 ht->retval = ipc_get_arg1(call);291 ht->retval = IPC_GET_ARG1(*call); 294 292 295 293 process_pending_wait();
Note:
See TracChangeset
for help on using the changeset viewer.