[ JIRA Id - ODUHIGH-573 ] Code changes upgraded to Gcc version 11.4.0
[o-du/l2.git] / src / ric_stub / ric_stub_sctp.c
index 6c76ecb..a0a455a 100644 (file)
@@ -24,6 +24,9 @@
 #include "ric_e2ap_msg_hdl.h"
 #include "E2AP-PDU.h"
 
+uint8_t   socket_type;
+SctpGlobalCb sctpCb;
+
 /**************************************************************************
  * @brief Function to configure the Sctp Params during config Request
  *
@@ -146,7 +149,7 @@ uint8_t sctpStartReq()
       {
          DU_LOG("\nERROR  -->  SCTP: Binding failed at RIC");
       }
-      else if(ret = cmInetListen(&sctpCb.e2LstnSockFd, 1) != ROK)
+      else if((ret = cmInetListen(&sctpCb.e2LstnSockFd, 1)) != ROK)
       {
          DU_LOG("\nERROR  -->  SCTP: Unable to accept the connection at CU");
          DU_LOG("\nERROR  -->  SCTP : Listening on socket failed");