Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix for L2 compilation with WLS [Issue-ID: ODUHIGH-240]
[o-du/l2.git]
/
src
/
cu_stub
/
cu_stub.h
diff --git
a/src/cu_stub/cu_stub.h
b/src/cu_stub/cu_stub.h
index
22ae742
..
138c788
100644
(file)
--- a/
src/cu_stub/cu_stub.h
+++ b/
src/cu_stub/cu_stub.h
@@
-28,19
+28,20
@@
#define DU_PORT 38472
/* allocate and zero out a static buffer */
#define DU_PORT 38472
/* allocate and zero out a static buffer */
-#define CU_ALLOC(_datPtr, _size)
\
-{
\
- S16 _ret;
\
+#define CU_ALLOC(_datPtr, _size) \
+{ \
+ S16 _ret; \
_ret = SGetSBuf(CU_APP_MEM_REG, CU_POOL, \
_ret = SGetSBuf(CU_APP_MEM_REG, CU_POOL, \
- (Data **)&_datPtr, _size);
\
- if(_ret == ROK)
\
- cmMemset((U8*)_datPtr, 0, _size);
\
- else
\
- _datPtr = NULLP;
\
+ (Data **)&_datPtr, _size); \
+ if(_ret == ROK) \
+ cmMemset((U8*)_datPtr, 0, _size); \
+ else \
+ _datPtr = NULLP; \
}
/* free a static buffer */
}
/* free a static buffer */
-#define CU_FREE(_datPtr, _size) \
+#define CU_FREE(_datPtr, _size) \
+ if(_datPtr) \
SPutSBuf(CU_APP_MEM_REG, CU_POOL, \
(Data *)_datPtr, _size);
SPutSBuf(CU_APP_MEM_REG, CU_POOL, \
(Data *)_datPtr, _size);
@@
-91,6
+92,7
@@
CuCfgParams cuCfgParams; //global variable to hold all configs
void readCuCfg();
void cuAppInmsgHdlr(Buffer *mBuf);
void sctpNtfyInd(CmInetSctpNotification *ntfy);
void readCuCfg();
void cuAppInmsgHdlr(Buffer *mBuf);
void sctpNtfyInd(CmInetSctpNotification *ntfy);
+uint8_t egtpInitReq();
#endif
#endif