From b8551584ee2b6cbdbcfabd04096c26923e336792 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 3 Jun 2022 11:38:15 -0400 Subject: lib, vrrpd: Use THREAD_ARG Don't auto set the thread->arg pointer. It is private and should be only accessed through the THREAD_ARG pointer. Signed-off-by: Donald Sharp --- lib/northbound_grpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/northbound_grpc.cpp') diff --git a/lib/northbound_grpc.cpp b/lib/northbound_grpc.cpp index 9cb999110b..95721ffc77 100644 --- a/lib/northbound_grpc.cpp +++ b/lib/northbound_grpc.cpp @@ -198,7 +198,7 @@ class RpcStateBase static void c_callback(struct thread *thread) { - auto _tag = static_cast(thread->arg); + auto _tag = static_cast(THREAD_ARG(thread)); /* * We hold the lock until the callback finishes and has updated * _tag->state, then we signal done and release. -- cgit v1.2.3