From d6665cf63fec810a06958e2a277076e81ef5a026 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Wed, 3 May 2023 23:49:16 -0400 Subject: lib: dont be tricky with session_id just make it a session_id - Previously was substituting a pointer to local allocated session for the session_id returned from the FE adapter. This complexity isn't needed. - Get rid of "%llu" format and the casts that came with it, instead use PRIu64 and the actual (uint64_t) type. Signed-off-by: Christian Hopps --- lib/vty.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/vty.h') diff --git a/lib/vty.h b/lib/vty.h index 560748d91d..9d2fd3bfc0 100644 --- a/lib/vty.h +++ b/lib/vty.h @@ -218,8 +218,8 @@ struct vty { size_t frame_pos; char frame[1024]; - uintptr_t mgmt_session_id; - uint64_t mgmt_client_id; + uint64_t mgmt_session_id; /* FE adapter identifies session w/ this */ + uint64_t mgmt_client_id; /* FE vty client identifies w/ this ID */ uint64_t mgmt_req_id; bool mgmt_req_pending; bool mgmt_locked_candidate_ds; -- cgit v1.2.3