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
ZhouShuya
OpenXG-RAN
Commits
7a1caf70
Commit
7a1caf70
authored
Nov 23, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup: strcmp() on correct files
parent
3533b6d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+2
-2
No files found.
targets/RT/USER/lte-ue.c
View file @
7a1caf70
...
...
@@ -84,13 +84,13 @@ int ue_cqi_set(char *s, int debug, telnet_printfunc_t prnt) {
}
/* try to convert: if valid number, use it, else if it might be zero, check
* that string was zero, otherwise give -1 (any) */
const
int
ue
=
atoi
(
sue
)
?
atoi
(
sue
)
:
(
strcmp
(
s
,
"0"
)
==
0
?
0
:
-
1
);
const
int
ue
=
atoi
(
sue
)
?
atoi
(
sue
)
:
(
strcmp
(
s
ue
,
"0"
)
==
0
?
0
:
-
1
);
const
char
*
scqi
=
strtok
(
NULL
,
" "
);
if
(
!
scqi
)
{
LOG_E
(
MAC
,
"error: could not strtok() CQI part of input!
\n
"
);
return
-
1
;
}
const
int
c
=
atoi
(
scqi
)
?
atoi
(
scqi
)
:
(
strcmp
(
s
,
"0"
)
==
0
?
0
:
-
1
);
const
int
c
=
atoi
(
scqi
)
?
atoi
(
scqi
)
:
(
strcmp
(
s
cqi
,
"0"
)
==
0
?
0
:
-
1
);
if
(
ue
>=
0
)
cqi
[
ue
]
=
c
;
else
...
...
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