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
alex037yang
OpenXG-RAN
Commits
227a0640
Commit
227a0640
authored
Jan 23, 2019
by
frtabu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first set of cppcheck fixes
parent
501ae74c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
common/utils/telnetsrv/telnetsrv.c
common/utils/telnetsrv/telnetsrv.c
+0
-2
No files found.
common/utils/telnetsrv/telnetsrv.c
View file @
227a0640
...
@@ -357,7 +357,6 @@ int setgetvar(int moduleindex,char getorset,char *params) {
...
@@ -357,7 +357,6 @@ int setgetvar(int moduleindex,char getorset,char *params) {
memset
(
varname
,
0
,
sizeof
(
varname
));
memset
(
varname
,
0
,
sizeof
(
varname
));
n
=
sscanf
(
params
,
"%19s %ms"
,
varname
,
&
varval
);
n
=
sscanf
(
params
,
"%19s %ms"
,
varname
,
&
varval
);
for
(
i
=
0
;
telnetparams
.
CmdParsers
[
moduleindex
].
var
[
i
].
varvalptr
!=
NULL
;
i
++
)
{
for
(
i
=
0
;
telnetparams
.
CmdParsers
[
moduleindex
].
var
[
i
].
varvalptr
!=
NULL
;
i
++
)
{
if
(
strncasecmp
(
telnetparams
.
CmdParsers
[
moduleindex
].
var
[
i
].
varname
,
varname
,
strlen
(
telnetparams
.
CmdParsers
[
moduleindex
].
var
[
i
].
varname
))
==
0
)
{
if
(
strncasecmp
(
telnetparams
.
CmdParsers
[
moduleindex
].
var
[
i
].
varname
,
varname
,
strlen
(
telnetparams
.
CmdParsers
[
moduleindex
].
var
[
i
].
varname
))
==
0
)
{
if
(
n
>
0
&&
(
getorset
==
'g'
||
getorset
==
'G'
))
{
if
(
n
>
0
&&
(
getorset
==
'g'
||
getorset
==
'G'
))
{
...
@@ -478,7 +477,6 @@ int process_command(char *buf) {
...
@@ -478,7 +477,6 @@ int process_command(char *buf) {
rt
=
CMDSTATUS_NOTFOUND
;
rt
=
CMDSTATUS_NOTFOUND
;
j
=
sscanf
(
buf
,
"%9s %9s %2000[^
\t\n
]"
,
modulename
,
cmd
,
cmdb
);
j
=
sscanf
(
buf
,
"%9s %9s %2000[^
\t\n
]"
,
modulename
,
cmd
,
cmdb
);
if
(
telnetparams
.
telnetdbg
>
0
)
if
(
telnetparams
.
telnetdbg
>
0
)
printf
(
"process_command: %i words, module=%s cmd=%s, parameters= %s
\n
"
,
j
,
modulename
,
cmd
,
cmdb
);
printf
(
"process_command: %i words, module=%s cmd=%s, parameters= %s
\n
"
,
j
,
modulename
,
cmd
,
cmdb
);
...
...
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