diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-05-20 18:52:16 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2019-05-21 15:59:08 -0300 |
| commit | 81fddbe7ae5defbe6b9a0c8716d317cfaf503a62 (patch) | |
| tree | e19b153aa970369cfb32f39537de72ade98d9995 /lib/thread.c | |
| parent | eea3c899cdb2aa58abea00c6d2e57b5bb0d74d49 (diff) | |
*: rename new ForEach macros from the typesafe API
This is necessary to avoid a name collision with std::for_each
from C++.
Fixes the compilation of the gRPC northbound module.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
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 9489e3e923..7a9a0ab608 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -1034,7 +1034,7 @@ static void do_thread_cancel(struct thread_master *master) if (cr->eventobj) { struct thread *t; - for_each_safe(thread_list, &master->event, t) { + frr_each_safe(thread_list, &master->event, t) { if (t->arg != cr->eventobj) continue; thread_list_del(&master->event, t); @@ -1043,7 +1043,7 @@ static void do_thread_cancel(struct thread_master *master) thread_add_unuse(master, t); } - for_each_safe(thread_list, &master->ready, t) { + frr_each_safe(thread_list, &master->ready, t) { if (t->arg != cr->eventobj) continue; thread_list_del(&master->ready, t); |
