Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
a29cbf05
Commit
a29cbf05
authored
Oct 11, 2024
by
Guido Casati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup of cast in gNB_DU_name memcpy
parent
46fadda2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openair2/F1AP/tests/f1ap_lib_test.c
openair2/F1AP/tests/f1ap_lib_test.c
+1
-1
No files found.
openair2/F1AP/tests/f1ap_lib_test.c
View file @
a29cbf05
...
...
@@ -196,7 +196,7 @@ static void test_f1ap_setup_request(void)
/* gNB_DU_name */
uint8_t
*
gNB_DU_name
=
calloc
(
strlen
(
"OAI DU"
)
+
1
,
sizeof
(
uint8_t
));
AssertFatal
(
gNB_DU_name
!=
NULL
,
"out of memory
\n
"
);
memcpy
(
(
void
*
)
gNB_DU_name
,
"OAI DU"
,
strlen
(
"OAI DU"
)
+
1
);
memcpy
(
gNB_DU_name
,
"OAI DU"
,
strlen
(
"OAI DU"
)
+
1
);
/* sys_info */
uint8_t
*
mib
=
calloc
(
3
,
sizeof
(
uint8_t
));
uint8_t
*
sib1
=
calloc
(
3
,
sizeof
(
uint8_t
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment