Skip to content

Commit 24713d6

Browse files
committed
traj: pass grp info as routine parameter.
minor refactor: don't access group info global variable directly, but pass it as a routine parameter to hndl_client_(..).
1 parent e169667 commit 24713d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ros_traj.kl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ VAR
181181
-- local routine prototypes
182182
--
183183
--------------------------------------------------------------------------------
184-
ROUTINE hndl_client_(fd : FILE; cfg : cfg_t) : INTEGER FROM ros_traj
184+
ROUTINE hndl_client_(fd : FILE; cfg : cfg_t; grp_nfo : grp_info_t) : INTEGER FROM ros_traj
185185
ROUTINE has_msgs_(len : INTEGER; fd : FILE) : INTEGER FROM ros_traj
186186
ROUTINE read_sm000B_(fd : FILE; msg : sm000B_t) : INTEGER FROM ros_traj
187187
ROUTINE ack_svcreq_(seq : INTEGER; fd : FILE) : INTEGER FROM ros_traj
@@ -284,7 +284,7 @@ BEGIN
284284
log_info(LOG_PFIX + 'connected')
285285

286286
-- client connected, 'spin-off' connection handler
287-
stat_ = hndl_client_(sock_fd_, cfg_)
287+
stat_ = hndl_client_(sock_fd_, cfg_, grp_nfo_)
288288

289289
-- if there was no error and we were also not requested to shutdown,
290290
-- continue listening for clients
@@ -454,7 +454,7 @@ BEGIN
454454

455455
-- .. and try pushing the oldest traj pt to the TP side, but do so
456456
-- without blocking (we'll try again next iter)
457-
stat__ = push_pt_(sm000B_lst_[HEAD_OF_LIST], NO_BLOCK, cfg, grp_nfo_)
457+
stat__ = push_pt_(sm000B_lst_[HEAD_OF_LIST], NO_BLOCK, cfg, grp_nfo)
458458

459459
-- if TP side was busy, try again later
460460
-- TODO: add 'nodelay' lbl to skip DELAY

0 commit comments

Comments
 (0)