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 /tests/lib/test_grpc.cpp | |
| 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 'tests/lib/test_grpc.cpp')
| -rw-r--r-- | tests/lib/test_grpc.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/lib/test_grpc.cpp b/tests/lib/test_grpc.cpp index 0aa1bbb7e1..88372f45a5 100644 --- a/tests/lib/test_grpc.cpp +++ b/tests/lib/test_grpc.cpp @@ -79,7 +79,7 @@ static const struct frr_yang_module_info *const staticd_yang_modules[] = { &frr_staticd_info, &frr_vrf_info, }; -static int grpc_thread_stop(struct thread *thread); +static void grpc_thread_stop(struct thread *thread); static void _err_print(const void *cookie, const char *errstr) { @@ -499,7 +499,7 @@ void *grpc_client_test_start(void *arg) return NULL; } -static int grpc_thread_start(struct thread *thread) +static void grpc_thread_start(struct thread *thread) { struct frr_pthread_attr client = { .start = grpc_client_test_start, @@ -509,11 +509,9 @@ static int grpc_thread_start(struct thread *thread) auto pth = frr_pthread_new(&client, "GRPC Client thread", "grpc"); frr_pthread_run(pth, NULL); frr_pthread_wait_running(pth); - - return 0; } -static int grpc_thread_stop(struct thread *thread) +static void grpc_thread_stop(struct thread *thread) { std::cout << __func__ << ": frr_pthread_stop_all" << std::endl; frr_pthread_stop_all(); |
