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 /pathd/path_pcep_lib.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 'pathd/path_pcep_lib.c')
| -rw-r--r-- | pathd/path_pcep_lib.c | 16 | 
1 files changed, 6 insertions, 10 deletions
diff --git a/pathd/path_pcep_lib.c b/pathd/path_pcep_lib.c index 9fc8c091f8..8e3565d72d 100644 --- a/pathd/path_pcep_lib.c +++ b/pathd/path_pcep_lib.c @@ -45,8 +45,8 @@ static int pcep_lib_pceplib_socket_read_cb(void *fpt, void **thread, int fd,  					   void *payload);  static int pcep_lib_pceplib_socket_write_cb(void *fpt, void **thread, int fd,  					    void *payload); -static int pcep_lib_socket_read_ready(struct thread *thread); -static int pcep_lib_socket_write_ready(struct thread *thread); +static void pcep_lib_socket_read_ready(struct thread *thread); +static void pcep_lib_socket_write_ready(struct thread *thread);  /* pceplib pcep_event callbacks */  static void pcep_lib_pceplib_event_cb(void *fpt, pcep_event *event); @@ -241,26 +241,22 @@ int pcep_lib_pceplib_socket_read_cb(void *fpt, void **thread, int fd,  /* Callbacks called by path_pcep_controller when a socket is ready to read/write   */ -int pcep_lib_socket_write_ready(struct thread *thread) +void pcep_lib_socket_write_ready(struct thread *thread)  {  	struct pcep_ctrl_socket_data *data = THREAD_ARG(thread);  	assert(data != NULL); -	int retval = pceplib_external_socket_write(data->fd, data->payload); +	pceplib_external_socket_write(data->fd, data->payload);  	XFREE(MTYPE_PCEP, data); - -	return retval;  } -int pcep_lib_socket_read_ready(struct thread *thread) +void pcep_lib_socket_read_ready(struct thread *thread)  {  	struct pcep_ctrl_socket_data *data = THREAD_ARG(thread);  	assert(data != NULL); -	int retval = pceplib_external_socket_read(data->fd, data->payload); +	pceplib_external_socket_read(data->fd, data->payload);  	XFREE(MTYPE_PCEP, data); - -	return retval;  }  /* Callback passed to pceplib when a pcep_event is ready */  | 
