diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-03-01 16:18:12 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 08:32:17 -0400 | 
| commit | e6685141aae8fc869d49cde1d459f73b87bbec89 (patch) | |
| tree | 465539dece789430eaaf76bce18c754c5e18f452 /ldpd/ldpe.c | |
| parent | cb37cb336a2cca77bfbaf6b0cfab12e847e45623 (diff) | |
*: Rename `struct thread` to `struct event`
Effectively a massive search and replace of
`struct thread` to `struct event`.  Using the
term `thread` gives people the thought that
this event system is a pthread when it is not
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ldpd/ldpe.c')
| -rw-r--r-- | ldpd/ldpe.c | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/ldpd/ldpe.c b/ldpd/ldpe.c index f53dc72540..61a1a2aa81 100644 --- a/ldpd/ldpe.c +++ b/ldpd/ldpe.c @@ -25,10 +25,10 @@  #include "libfrr.h"  static void	 ldpe_shutdown(void); -static void ldpe_dispatch_main(struct thread *thread); -static void ldpe_dispatch_lde(struct thread *thread); +static void ldpe_dispatch_main(struct event *thread); +static void ldpe_dispatch_lde(struct event *thread);  #ifdef __OpenBSD__ -static void ldpe_dispatch_pfkey(struct thread *thread); +static void ldpe_dispatch_pfkey(struct event *thread);  #endif  static void	 ldpe_setup_sockets(int, int, int, int);  static void	 ldpe_close_sockets(int); @@ -44,7 +44,7 @@ static struct imsgev    iev_main_data;  static struct imsgev	*iev_main, *iev_main_sync;  static struct imsgev	*iev_lde;  #ifdef __OpenBSD__ -static struct thread	*pfkey_ev; +static struct event *pfkey_ev;  #endif  /* ldpe privileges */ @@ -122,7 +122,7 @@ ldpe(void)  	/* create base configuration */  	leconf = config_new_empty(); -	struct thread thread; +	struct event thread;  	while (thread_fetch(master, &thread))  		thread_call(&thread); @@ -262,7 +262,7 @@ ldpe_imsg_compose_lde(int type, uint32_t peerid, pid_t pid, void *data,  }  /* ARGSUSED */ -static void ldpe_dispatch_main(struct thread *thread) +static void ldpe_dispatch_main(struct event *thread)  {  	static struct ldpd_conf	*nconf;  	struct iface		*niface; @@ -622,7 +622,7 @@ static void ldpe_dispatch_main(struct thread *thread)  }  /* ARGSUSED */ -static void ldpe_dispatch_lde(struct thread *thread) +static void ldpe_dispatch_lde(struct event *thread)  {  	struct imsgev		*iev = THREAD_ARG(thread);  	struct imsgbuf		*ibuf = &iev->ibuf; @@ -759,7 +759,7 @@ static void ldpe_dispatch_lde(struct thread *thread)  #ifdef __OpenBSD__  /* ARGSUSED */ -static void ldpe_dispatch_pfkey(struct thread *thread) +static void ldpe_dispatch_pfkey(struct event *thread)  {  	int	 fd = THREAD_FD(thread);  | 
