cmRtSys.c : rtSubIdx associated with a cmRtNet is now assigned at cmRtNetAlloc()

rather than at cmRtNetEndPointRegister().
This commit is contained in:
kpl 2014-06-15 14:38:16 -07:00
parent 10943e18e3
commit c0d05985e6

View File

@ -974,7 +974,7 @@ cmRtRC_t cmRtSysCfg( cmRtSysH_t h, const cmRtSysSubSys_t* ss, unsigned rtSubIdx
// allocate the network mgr // 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."); rc = _cmRtError(p,kNetErrRtRC,"Network allocation failed.");
goto errLabel; goto errLabel;
@ -991,7 +991,7 @@ cmRtRC_t cmRtSysCfg( cmRtSysH_t h, const cmRtSysSubSys_t* ss, unsigned rtSubIdx
for(j=0; j<ss->endptCnt; ++j) for(j=0; j<ss->endptCnt; ++j)
{ {
cmRtSysNetEndpt_t* ep = ss->endptArray + 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); rc = _cmRtError(p,kNetErrRtRC,"Network end point allocation failed on label:%s id:%i.",cmStringNullGuard(ep->label),ep->id);
goto errLabel; goto errLabel;