X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ldpd%2Faccept.c;h=6151c1a0b6c707b55905162e51a0eeac8bde4f60;hb=e6685141aae8fc869d49cde1d459f73b87bbec89;hp=170c079b52cc758889ee4391722c8fbddb1c5843;hpb=cb37cb336a2cca77bfbaf6b0cfab12e847e45623;p=mirror_frr.git diff --git a/ldpd/accept.c b/ldpd/accept.c index 170c079b5..6151c1a0b 100644 --- a/ldpd/accept.c +++ b/ldpd/accept.c @@ -13,21 +13,21 @@ struct accept_ev { LIST_ENTRY(accept_ev) entry; - struct thread *ev; - void (*accept_cb)(struct thread *); + struct event *ev; + void (*accept_cb)(struct event *); void *arg; int fd; }; struct { LIST_HEAD(, accept_ev) queue; - struct thread *evt; + struct event *evt; } accept_queue; static void accept_arm(void); static void accept_unarm(void); -static void accept_cb(struct thread *); -static void accept_timeout(struct thread *); +static void accept_cb(struct event *); +static void accept_timeout(struct event *); void accept_init(void) @@ -35,7 +35,7 @@ accept_init(void) LIST_INIT(&accept_queue.queue); } -int accept_add(int fd, void (*cb)(struct thread *), void *arg) +int accept_add(int fd, void (*cb)(struct event *), void *arg) { struct accept_ev *av; @@ -103,14 +103,14 @@ accept_unarm(void) THREAD_OFF(av->ev); } -static void accept_cb(struct thread *thread) +static void accept_cb(struct event *thread) { struct accept_ev *av = THREAD_ARG(thread); thread_add_read(master, accept_cb, av, av->fd, &av->ev); av->accept_cb(thread); } -static void accept_timeout(struct thread *thread) +static void accept_timeout(struct event *thread) { accept_queue.evt = NULL;