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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
zzha zzha
OpenXG-RAN
Commits
e5ddd558
Commit
e5ddd558
authored
Feb 16, 2022
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing spacing in nfapi code
parent
3c925942
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
nfapi/open-nFAPI/nfapi/src/nfapi.c
nfapi/open-nFAPI/nfapi/src/nfapi.c
+10
-10
No files found.
nfapi/open-nFAPI/nfapi/src/nfapi.c
View file @
e5ddd558
...
...
@@ -357,22 +357,22 @@ uint32_t pullarray32(uint8_t **values_to_pull,
uint32_t
max_num_values_to_pull
,
uint32_t
num_values_to_pull
,
uint8_t
*
out_end
)
{
if
(
num_values_to_pull
==
0
)
if
(
num_values_to_pull
==
0
)
return
1
;
if
(
num_values_to_pull
>
max_num_values_to_pull
)
{
if
(
num_values_to_pull
>
max_num_values_to_pull
)
{
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s exceed array size (%d > %d)
\n
"
,
__FUNCTION__
,
num_values_to_pull
,
max_num_values_to_pull
);
on_error
();
return
0
;
}
if
((
out_end
-
(
*
values_to_pull
))
>=
sizeof
(
uint32_t
)
*
num_values_to_pull
)
{
if
((
out_end
-
(
*
values_to_pull
))
>=
sizeof
(
uint32_t
)
*
num_values_to_pull
)
{
uint32_t
idx
;
for
(
idx
=
0
;
idx
<
num_values_to_pull
;
++
idx
)
{
if
(
!
pull32
(
values_to_pull
,
&
out
[
idx
],
out_end
))
for
(
idx
=
0
;
idx
<
num_values_to_pull
;
++
idx
)
{
if
(
!
pull32
(
values_to_pull
,
&
out
[
idx
],
out_end
))
return
0
;
}
...
...
@@ -414,21 +414,21 @@ uint32_t pusharray32(const uint32_t *values_to_push,
uint32_t
num_values_to_push
,
uint8_t
**
out
,
uint8_t
*
out_end
)
{
if
(
num_values_to_push
==
0
)
if
(
num_values_to_push
==
0
)
return
1
;
if
(
num_values_to_push
>
max_num_values_to_push
)
{
if
(
num_values_to_push
>
max_num_values_to_push
)
{
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s exceed array size (%d > %d)
\n
"
,
__FUNCTION__
,
num_values_to_push
,
max_num_values_to_push
);
on_error
();
return
0
;
}
if
((
out_end
-
(
*
out
))
>=
sizeof
(
uint32_t
)
*
num_values_to_push
)
{
if
((
out_end
-
(
*
out
))
>=
sizeof
(
uint32_t
)
*
num_values_to_push
)
{
uint32_t
idx
;
for
(
idx
=
0
;
idx
<
num_values_to_push
;
++
idx
)
{
if
(
!
push32
(
values_to_push
[
idx
],
out
,
out_end
))
for
(
idx
=
0
;
idx
<
num_values_to_push
;
++
idx
)
{
if
(
!
push32
(
values_to_push
[
idx
],
out
,
out_end
))
return
0
;
}
...
...
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