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 /lib/zlog_5424.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 'lib/zlog_5424.c')
| -rw-r--r-- | lib/zlog_5424.c | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/zlog_5424.c b/lib/zlog_5424.c index 740d6bfba8..9da7c55fc5 100644 --- a/lib/zlog_5424.c +++ b/lib/zlog_5424.c @@ -799,7 +799,7 @@ static void zlog_5424_cycle(struct zlog_cfg_5424 *zcf, int fd)  	rcu_free(MTYPE_LOG_5424, oldt, zt.rcu_head);  } -static int zlog_5424_reconnect(struct thread *t) +static void zlog_5424_reconnect(struct thread *t)  {  	struct zlog_cfg_5424 *zcf = THREAD_ARG(t);  	int fd = THREAD_FD(t); @@ -812,7 +812,7 @@ static int zlog_5424_reconnect(struct thread *t)  			/* logger is sending us something?!?! */  			thread_add_read(t->master, zlog_5424_reconnect, zcf, fd,  					&zcf->t_reconnect); -			return 0; +			return;  		}  		if (ret == 0) @@ -832,7 +832,6 @@ static int zlog_5424_reconnect(struct thread *t)  	frr_with_mutex (&zcf->cfg_mtx) {  		zlog_5424_cycle(zcf, fd);  	} -	return 0;  }  static int zlog_5424_unix(struct sockaddr_un *suna, int sock_type)  | 
