summaryrefslogtreecommitdiff
path: root/lib/northbound_grpc.cpp
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-06-03 11:38:15 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-07-21 08:30:50 -0400
commitb8551584ee2b6cbdbcfabd04096c26923e336792 (patch)
treef0947172ed7d8d3610efa3eaed10e7a8645e14d9 /lib/northbound_grpc.cpp
parentc3aaa89a442a43fbaf2ef9dce6422f57a58e52b0 (diff)
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 <sharpd@nvidia.com>
Diffstat (limited to 'lib/northbound_grpc.cpp')
-rw-r--r--lib/northbound_grpc.cpp2
1 files changed, 1 insertions, 1 deletions
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<RpcStateBase *>(thread->arg);
+ auto _tag = static_cast<RpcStateBase *>(THREAD_ARG(thread));
/*
* We hold the lock until the callback finishes and has updated
* _tag->state, then we signal done and release.