X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fdu_app%2Fdu_cfg.c;h=a0b3fdc0f0365f77bd539406ccdba63fe06e2f55;hb=65443172dd60a6ea312bd3a15959dbf54ad7f045;hp=6f8f880206632ca9ca62343fd4f2d9a56f7610f3;hpb=aee73991f728cc127d1ed76d5a52571d916235a4;p=o-du%2Fl2.git diff --git a/src/du_app/du_cfg.c b/src/du_app/du_cfg.c index 6f8f88020..a0b3fdc0f 100644 --- a/src/du_app/du_cfg.c +++ b/src/du_app/du_cfg.c @@ -52,8 +52,8 @@ #include "BWP-DownlinkCommon.h" #include "BWP-UplinkCommon.h" -extern DuCfgParams duCfgParam; -extern char encBuf[ENC_BUF_MAX_LEN]; +DuCfgParams duCfgParam; +char encBuf[ENC_BUF_MAX_LEN]; /* Filling Slot configuration as : @@ -769,7 +769,7 @@ uint8_t duReadCfg() Pst pst; Buffer *mBuf; - memset((uint8_t *)&duCfgParam, 0, sizeof(DuCfgParams)); + memset(&duCfgParam, 0, sizeof(DuCfgParams)); //Read configs into duCfgParams if(readCfg() != ROK) { @@ -778,7 +778,7 @@ uint8_t duReadCfg() } //Fill pst structure - memset((uint8_t *)&(pst), 0, sizeof(Pst)); + memset(&(pst), 0, sizeof(Pst)); pst.srcEnt = (Ent)ENTDUAPP; pst.srcInst = (Inst)DU_INST; pst.srcProcId = DU_PROC; @@ -790,7 +790,7 @@ uint8_t duReadCfg() pst.pool= DU_POOL; - if(ODU_GET_MSG(DFLT_REGION, DU_POOL, &mBuf) != ROK) + if(ODU_GET_MSG_BUF(DFLT_REGION, DU_POOL, &mBuf) != ROK) { DU_LOG("\nDU_APP : Memory allocation failed in duReadCfg"); return RFAILED;