summaryrefslogtreecommitdiff
path: root/tests/lib/test_grpc.cpp
diff options
context:
space:
mode:
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();