X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_cfg_hdl.c;h=08de5389d3a8c996a6ce149aef5530e5ca82a828;hb=4d45b914f9e94203603d3b9fdbcb1aad361301dd;hp=e8c76ebfe9f77f437b34ebdf2df1f2a74c0f98e0;hpb=6b44407d464a5a4e060999255233a7cfe78bb0fa;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_cfg_hdl.c b/src/5gnrmac/mac_cfg_hdl.c index e8c76ebfe..08de5389d 100644 --- a/src/5gnrmac/mac_cfg_hdl.c +++ b/src/5gnrmac/mac_cfg_hdl.c @@ -63,7 +63,7 @@ SchCellCfgFunc SchCellCfgOpts[] = * @return * -# ROK **/ -PUBLIC int MacSchGenCfgReq(Pst *pst, RgMngmt *cfg) +PUBLIC uint8_t MacSchGenCfgReq(Pst *pst, RgMngmt *cfg) { printf("\nReceived Scheduler gen config at MAC"); pst->dstInst = DEFAULT_CELLS + 1; @@ -122,7 +122,7 @@ uint8_t MacProcCellCfgReq(Pst *pst, MacCellCfg *macCellCfg) uint16_t ret = ROK; MacCellCb *macCellCb; - cmMemset((uint8_t *)&cfmPst, 0, sizeof(Pst)); + memset((uint8_t *)&cfmPst, 0, sizeof(Pst)); MAC_ALLOC(macCellCb, sizeof(MacCellCb)); if(macCellCb == NULLP) @@ -194,9 +194,9 @@ uint8_t MacSchCellCfgReq(Pst *pst, MacCellCfg *macCellCfg) { SchCellCfg schCellCfg; Pst cfgPst; - int ret; + uint8_t ret; - cmMemset((uint8_t *)&cfgPst, 0, sizeof(Pst)); + memset((uint8_t *)&cfgPst, 0, sizeof(Pst)); schCellCfg.cellId = macCellCfg->cellId; schCellCfg.phyCellId = macCellCfg->phyCellId; schCellCfg.bandwidth = macCellCfg->dlCarrCfg.bw; @@ -312,7 +312,7 @@ void MacSendCellCfgCfm(uint16_t cellId, uint8_t response) uint16_t cellIdx; MacCellCfgCfm macCellCfgCfm; - cmMemset((uint8_t *)&pst, 0, sizeof(Pst)); + memset((uint8_t *)&pst, 0, sizeof(Pst)); GET_CELL_IDX(cellId, cellIdx); macCellCfgCfm.cellId = macCb.macCell[cellIdx]->macCellCfg.cellId;