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
[ JIRA Id - ODUHIGH-606 ] Fixing null memory size allocation issue
[o-du/l2.git]
/
src
/
5gnrmac
/
rg_id.c
diff --git
a/src/5gnrmac/rg_id.c
b/src/5gnrmac/rg_id.c
index
38ef7f5
..
a0c3d29
100755
(executable)
--- a/
src/5gnrmac/rg_id.c
+++ b/
src/5gnrmac/rg_id.c
@@
-45,7
+45,7
@@
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
-
EXTERN
Void rgGetSId ARGS((SystemId *s));
+Void rgGetSId ARGS((SystemId *s));
#ifdef __cplusplus
}
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
@@
-59,7
+59,7
@@
EXTERN Void rgGetSId ARGS((SystemId *s));
#define RGSWPN "1000372" /* LTE MAC - part number */
/* system id */
#define RGSWPN "1000372" /* LTE MAC - part number */
/* system id */
-
PRIVATE CONSTANT
SystemId sId ={
+
static const
SystemId sId ={
RGSWMV, /* LTE MAC - main version */
RGSWMR, /* LTE MAC - main revision */
RGSWBV, /* LTE MAC - branch version */
RGSWMV, /* LTE MAC - main version */
RGSWMR, /* LTE MAC - main revision */
RGSWBV, /* LTE MAC - branch version */
@@
-97,15
+97,10
@@
PRIVATE CONSTANT SystemId sId ={
*
*/
*
*/
-#ifdef ANSI
Void rgGetSId
(
SystemId *s /* system id */
)
Void rgGetSId
(
SystemId *s /* system id */
)
-#else
-Void rgGetSId(s)
-SystemId *s; /* system id */
-#endif
{
s->mVer = sId.mVer;
s->mRev = sId.mRev;
{
s->mVer = sId.mVer;
s->mRev = sId.mRev;
@@
-114,7
+109,7
@@
SystemId *s; /* system id */
memcpy(s->ptNmb, sId.ptNmb, LRG_MAX_PT_NUM_SIZE);
/* Stack Crash Problem for TRACE5 Changes. Added the return below */
memcpy(s->ptNmb, sId.ptNmb, LRG_MAX_PT_NUM_SIZE);
/* Stack Crash Problem for TRACE5 Changes. Added the return below */
-
RETVOID
;
+
return
;
} /* end of rgGetSid */
} /* end of rgGetSid */