diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-12-25 16:26:52 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 13:32:17 +0100 |
commit | e16d030c65ca97b1ba68b93ada93b1d4edde59d3 (patch) | |
tree | e3a57a2e2887a899cad71c0640047b2b2409b5fa /lib/northbound_confd.c | |
parent | lib, zebra: Convert THREAD_TIMER_STRLEN to EVENT_TIMER_STRLEN (diff) | |
download | frr-e16d030c65ca97b1ba68b93ada93b1d4edde59d3.tar.xz frr-e16d030c65ca97b1ba68b93ada93b1d4edde59d3.zip |
*: Convert THREAD_XXX macros to EVENT_XXX macros
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/northbound_confd.c')
-rw-r--r-- | lib/northbound_confd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/northbound_confd.c b/lib/northbound_confd.c index 6be2ed00b..0e01b0603 100644 --- a/lib/northbound_confd.c +++ b/lib/northbound_confd.c @@ -403,7 +403,7 @@ static int frr_confd_cdb_read_cb_abort(int fd, int *subp, int reslen) static void frr_confd_cdb_read_cb(struct event *thread) { - int fd = THREAD_FD(thread); + int fd = EVENT_FD(thread); enum cdb_sub_notification cdb_ev; int flags; int *subp = NULL; @@ -588,7 +588,7 @@ error: static void frr_confd_finish_cdb(void) { if (cdb_sub_sock > 0) { - THREAD_OFF(t_cdb_sub); + EVENT_OFF(t_cdb_sub); cdb_close(cdb_sub_sock); } } @@ -1175,8 +1175,8 @@ static int frr_confd_dp_read(struct confd_daemon_ctx *dctx, int fd) static void frr_confd_dp_ctl_read(struct event *thread) { - struct confd_daemon_ctx *dctx = THREAD_ARG(thread); - int fd = THREAD_FD(thread); + struct confd_daemon_ctx *dctx = EVENT_ARG(thread); + int fd = EVENT_FD(thread); event_add_read(master, frr_confd_dp_ctl_read, dctx, fd, &t_dp_ctl); @@ -1185,8 +1185,8 @@ static void frr_confd_dp_ctl_read(struct event *thread) static void frr_confd_dp_worker_read(struct event *thread) { - struct confd_daemon_ctx *dctx = THREAD_ARG(thread); - int fd = THREAD_FD(thread); + struct confd_daemon_ctx *dctx = EVENT_ARG(thread); + int fd = EVENT_FD(thread); event_add_read(master, frr_confd_dp_worker_read, dctx, fd, &t_dp_worker); @@ -1337,11 +1337,11 @@ error: static void frr_confd_finish_dp(void) { if (dp_worker_sock > 0) { - THREAD_OFF(t_dp_worker); + EVENT_OFF(t_dp_worker); close(dp_worker_sock); } if (dp_ctl_sock > 0) { - THREAD_OFF(t_dp_ctl); + EVENT_OFF(t_dp_ctl); close(dp_ctl_sock); } if (dctx != NULL) |