diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-12-09 01:15:23 +0000 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-12-09 01:15:38 +0000 |
commit | 98c1e19466c0d83c8e1ca86eda5b273eda7eff3c (patch) | |
tree | b47ccc174669786e3a1df9569046886c23003a45 /common | |
parent | c8776fac4232f9faab0a78ef3e18dc4366496421 (diff) |
list.c: rename free_flat_list to list_free_items_and_destroy
Diffstat (limited to 'common')
-rw-r--r-- | common/list.c | 2 | ||||
-rw-r--r-- | common/loop.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/list.c b/common/list.c index 2a803702..9805ceec 100644 --- a/common/list.c +++ b/common/list.c @@ -147,7 +147,7 @@ void list_stable_sort(list_t *list, int compare(const void *a, const void *b)) { } } -void free_flat_list(list_t *list) { +void list_free_items_and_destroy(list_t *list) { if (!list) { return; } diff --git a/common/loop.c b/common/loop.c index ad2b4a64..295f3a30 100644 --- a/common/loop.c +++ b/common/loop.c @@ -45,8 +45,8 @@ struct loop *loop_create(void) { } void loop_destroy(struct loop *loop) { - free_flat_list(loop->fd_events); - free_flat_list(loop->timers); + list_free_items_and_destroy(loop->fd_events); + list_free_items_and_destroy(loop->timers); free(loop->fds); free(loop); } |