X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frlog%2Frl_rlog.c;h=9cb1836d2f573b24cff212af53158a82ab3259ff;hb=9c8b78da0f4ef42dae5e30a3061463b81327e7a0;hp=cb44af511eca6e029931733e0d769403ed36f3e9;hpb=829bbd114f1c3dc00c1da47bca0a8207c049df3f;p=o-du%2Fl2.git diff --git a/src/rlog/rl_rlog.c b/src/rlog/rl_rlog.c index cb44af511..9cb1836d2 100644 --- a/src/rlog/rl_rlog.c +++ b/src/rlog/rl_rlog.c @@ -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;