Merge "replaced cmMemSet, cmMemcpy with memset and memcpy resp AND Removed TRC()...
[o-du/l2.git] / src / rlog / rl_rlog.c
index cb44af5..9cb1836 100644 (file)
@@ -741,7 +741,7 @@ void*       rLogServer(void* arg)
   int newsockfd;
   int clilen = 0;
   int domain = AF_INET;
-  memset((void*)&serv_addr, 0, sizeof(serv_addr));
+  memset(&serv_addr, 0, sizeof(serv_addr));
 
 
   if(gIpType == CM_IPV4ADDR_TYPE)
@@ -1311,17 +1311,6 @@ void saveLogData(const void* buf, U16 len, U32 g_rlogWritePosIndex)
 
 }
 
-#if 0
-void storeTimeDelimeter(FILE* fp)
-{
-   LOGDATA logData;
-   logData.logId = L_TIME_DELIMITER;
-   logData.argType = 0;
-   logData.logLevel = 0;
-   logData.numOfArgs = 0;
-   logData.len = 0;
-}
-#endif
 void sendToPostProcessor(const void* buf, U16 len)
 {
    if( send(g_nCliSocket, buf, len, 0 ) == -1 ) {
@@ -1711,12 +1700,12 @@ void rlUpdateRlogTti(Void)
 */
 
 #ifdef ANSI
-PUBLIC Void rlProcessLogBufFromL2
+Void rlProcessLogBufFromL2
 (
  void *mBuf
  )
 #else
-PUBLIC Void rlProcessLogBufFromL2(mBuf)
+Void rlProcessLogBufFromL2(mBuf)
    void *mBuf;
 #endif
 {
@@ -1740,7 +1729,7 @@ PUBLIC Void rlProcessLogBufFromL2(mBuf)
 
 /* This function will get tick from RLC/CL and will process logs
    according to tick threshold. Tick threshold is SOC specific */
-PUBLIC Void rlProcessTicks(void)
+Void rlProcessTicks(void)
 {
    static U32 rlogTickCount;
    numTtiTicks++;
@@ -1782,7 +1771,7 @@ PUBLIC Void rlProcessTicks(void)
 //  @out         : void
 //////////////////////////////////////////////////////////////////////////
 
-PUBLIC Void readL2LogBuff(void)
+Void readL2LogBuff(void)
 {
    /* Validate global buffer pointer and length */
    U8 ret;
@@ -1810,9 +1799,9 @@ PUBLIC Void readL2LogBuff(void)
 //////////////////////////////////////////////////////////////////////////
 
 #ifdef ANSI
-PUBLIC S16 rlValidateL2LogBuf(void)
+S16 rlValidateL2LogBuf(void)
 #else
-PUBLIC S16 rlValidateL2LogBuf(void)
+S16 rlValidateL2LogBuf(void)
 #endif
 {
    S16 ret = ROK;
@@ -1844,13 +1833,13 @@ PUBLIC S16 rlValidateL2LogBuf(void)
 //////////////////////////////////////////////////////////////////////////
 
 #ifdef ANSI
-PUBLIC void rlSetL2LogBuf
+void rlSetL2LogBuf
 (
 U8 *l2LogBuf,
 U32 l2logLen
 )
 #else
-PUBLIC void rlSetL2LogBuf(l2LogBuf,l2logLen)
+void rlSetL2LogBuf(l2LogBuf,l2logLen)
 U8 *l2LogBuf;
 U32 l2logLen;
 #endif
@@ -1867,12 +1856,12 @@ U32 l2logLen;
 //////////////////////////////////////////////////////////////////////////
 
 #ifdef ANSI
-PUBLIC void rlResetL2LogBuf
+void rlResetL2LogBuf
 (
 void
 )
 #else
-PUBLIC void rlResetL2LogBuf(void)
+void rlResetL2LogBuf(void)
 #endif
 {
    g_logBufRcvdFromL2      = NULL;