summaryrefslogtreecommitdiff
path: root/tests/lib/test_grpc.cpp
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2022-02-24 01:43:48 -0500
committerGitHub <noreply@github.com>2022-02-24 01:43:48 -0500
commit7bf63db79b7848b73e1cef49f3496038644bea16 (patch)
tree2c95921d910689673348e60f9614de7d9d00c4e7 /tests/lib/test_grpc.cpp
parentca6c97340b013e140c0cb31737858f7c672b7dfb (diff)
parentcc9f21da2218d95567eff1501482ce58e6600f54 (diff)
Merge pull request #10632 from donaldsharp/thread_return_null
*: Change thread->func to return void instead of int
Diffstat (limited to 'tests/lib/test_grpc.cpp')
-rw-r--r--tests/lib/test_grpc.cpp8
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();