diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-06-03 11:38:15 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-07-21 08:30:50 -0400 |
| commit | b8551584ee2b6cbdbcfabd04096c26923e336792 (patch) | |
| tree | f0947172ed7d8d3610efa3eaed10e7a8645e14d9 /lib/northbound_grpc.cpp | |
| parent | c3aaa89a442a43fbaf2ef9dce6422f57a58e52b0 (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.cpp | 2 |
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. |
