remove/replaced PRIVATE and EXTERN keywords
[o-du/l2.git] / src / du_app / du_cfg.c
index 9170ba8..a0b3fdc 100644 (file)
@@ -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;