Changes in uspace/srv/ns/task.c [feeac0d:3e6a98c5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/task.c
rfeeac0d r3e6a98c5 179 179 180 180 loop: 181 list_foreach(pending_wait, link, pending_wait_t, pr) { 181 list_foreach(pending_wait, cur) { 182 pending_wait_t *pr = list_get_instance(cur, pending_wait_t, link); 183 182 184 ht_link_t *link = hash_table_find(&task_hash_table, &pr->id); 183 185 if (!link) … … 196 198 197 199 hash_table_remove(&task_hash_table, &pr->id); 198 list_remove( &pr->link);200 list_remove(cur); 199 201 free(pr); 200 202 goto loop; … … 206 208 sysarg_t retval; 207 209 task_exit_t texit; 208 bool remove = false;209 210 210 211 ht_link_t *link = hash_table_find(&task_hash_table, &id); … … 234 235 } 235 236 236 remove = true;237 hash_table_remove_item(&task_hash_table, link); 237 238 retval = EOK; 238 239 … … 242 243 ipc_answer_2(callid, retval, texit, ht->retval); 243 244 } 244 if (remove)245 hash_table_remove_item(&task_hash_table, link);246 245 } 247 246
Note:
See TracChangeset
for help on using the changeset viewer.