diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-02-22 19:04:25 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-02-23 19:56:04 -0500 | 
| commit | cc9f21da2218d95567eff1501482ce58e6600f54 (patch) | |
| tree | d579c9754161d874bad6eb09c67821b65fb559ca /pimd/pim_mroute.c | |
| parent | eaba619fc183f68a456b3918f449185b3b477426 (diff) | |
*: Change thread->func to return void instead of int
The int return value is never used.  Modify the code
base to just return a void instead.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd/pim_mroute.c')
| -rw-r--r-- | pimd/pim_mroute.c | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c index 91b997f44a..cf9127bc91 100644 --- a/pimd/pim_mroute.c +++ b/pimd/pim_mroute.c @@ -677,12 +677,11 @@ static int pim_mroute_msg(struct pim_instance *pim, const char *buf,  	return 0;  } -static int mroute_read(struct thread *t) +static void mroute_read(struct thread *t)  {  	struct pim_instance *pim;  	static long long count;  	char buf[10000]; -	int result = 0;  	int cont = 1;  	int rd;  	ifindex_t ifindex; @@ -705,7 +704,7 @@ static int mroute_read(struct thread *t)  			goto done;  		} -		result = pim_mroute_msg(pim, buf, rd, ifindex); +		pim_mroute_msg(pim, buf, rd, ifindex);  		count++;  		if (count % router->packet_process == 0) @@ -714,8 +713,6 @@ static int mroute_read(struct thread *t)  /* Keep reading */  done:  	mroute_read_on(pim); - -	return result;  }  static void mroute_read_on(struct pim_instance *pim)  | 
