mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-03 15:29:29 +00:00
list: Add TODO to improve list_move_item() function
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
This commit is contained in:
@@ -432,6 +432,8 @@ void *list_remove(void *item_to_remove, struct list **list, comparison_fn_t comp
|
||||
void list_move_item(void *item_to_move, struct list **list1, struct list **list2, comparison_fn_t comparison_fn)
|
||||
{
|
||||
void *item;
|
||||
//TODO: Improve eficience of this function. We are calling list_head()
|
||||
// on list1 for all iterations on while()
|
||||
|
||||
item = list_remove(item_to_move, list1, comparison_fn);
|
||||
while (item) {
|
||||
|
||||
Reference in New Issue
Block a user