diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2018-10-02 11:39:51 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2018-10-02 11:40:52 +0200 |
| commit | 6a154c88122dd0a9e9deb4309e15b975ad169817 (patch) | |
| tree | 25e32515503d2b9327ff43e335b4b5ceb4d74787 /lib/thread.c | |
| parent | b08bb12b9b5bab9684b6679f997f11c755f9aa67 (diff) | |
*: list_delete_and_null() -> list_delete()
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/thread.c')
| -rw-r--r-- | lib/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/thread.c b/lib/thread.c index 2c3db27c7b..a81faae796 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -622,7 +622,7 @@ void thread_master_free(struct thread_master *m) { listnode_delete(masters, m); if (masters->count == 0) { - list_delete_and_null(&masters); + list_delete(&masters); } } pthread_mutex_unlock(&masters_mtx); @@ -637,7 +637,7 @@ void thread_master_free(struct thread_master *m) pthread_cond_destroy(&m->cancel_cond); close(m->io_pipe[0]); close(m->io_pipe[1]); - list_delete_and_null(&m->cancel_req); + list_delete(&m->cancel_req); m->cancel_req = NULL; hash_clean(m->cpu_record, cpu_record_hash_free); |
