From c0d05985e60d9926d0e66fa76190d30b038c3be2 Mon Sep 17 00:00:00 2001 From: kpl Date: Sun, 15 Jun 2014 14:38:16 -0700 Subject: [PATCH] cmRtSys.c : rtSubIdx associated with a cmRtNet is now assigned at cmRtNetAlloc() rather than at cmRtNetEndPointRegister(). --- cmRtSys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmRtSys.c b/cmRtSys.c index 5961e85..998b78e 100644 --- a/cmRtSys.c +++ b/cmRtSys.c @@ -974,7 +974,7 @@ cmRtRC_t cmRtSysCfg( cmRtSysH_t h, const cmRtSysSubSys_t* ss, unsigned rtSubIdx // allocate the network mgr - if( cmRtNetAlloc(p->ctx,&cp->netH, _cmRtSysNetRecv, cp ) != kOkNetRC ) + if( cmRtNetAlloc(p->ctx,&cp->netH, cp->ctx.rtSubIdx, _cmRtSysNetRecv, cp ) != kOkNetRC ) { rc = _cmRtError(p,kNetErrRtRC,"Network allocation failed."); goto errLabel; @@ -991,7 +991,7 @@ cmRtRC_t cmRtSysCfg( cmRtSysH_t h, const cmRtSysSubSys_t* ss, unsigned rtSubIdx for(j=0; jendptCnt; ++j) { cmRtSysNetEndpt_t* ep = ss->endptArray + j; - if( cmRtNetRegisterEndPoint( cp->netH, cp->ctx.rtSubIdx, ep->label, ep->id ) != kOkNetRC ) + if( cmRtNetRegisterEndPoint( cp->netH, ep->label, ep->id ) != kOkNetRC ) { rc = _cmRtError(p,kNetErrRtRC,"Network end point allocation failed on label:%s id:%i.",cmStringNullGuard(ep->label),ep->id); goto errLabel;