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
d67d435a
Commit
d67d435a
authored
Mar 11, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing last cppcheck warnings
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
95569173
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/utils/telnetsrv/telnetsrv.c
common/utils/telnetsrv/telnetsrv.c
+2
-2
No files found.
common/utils/telnetsrv/telnetsrv.c
View file @
d67d435a
...
...
@@ -355,7 +355,7 @@ int setgetvar(int moduleindex,char getorset,char *params) {
char
varname
[
TELNET_CMD_MAXSIZE
];
char
*
varval
=
NULL
;
memset
(
varname
,
0
,
sizeof
(
varname
));
n
=
sscanf
(
params
,
"%s %ms"
,
varname
,
&
varval
);
n
=
sscanf
(
params
,
"%
9
s %ms"
,
varname
,
&
varval
);
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
)
{
...
...
@@ -475,7 +475,7 @@ int process_command(char *buf) {
memset
(
cmdb
,
0
,
sizeof
(
cmdb
));
bufbck
=
strdup
(
buf
);
rt
=
CMDSTATUS_NOTFOUND
;
j
=
sscanf
(
buf
,
"%9s %9s %[^
\t\n
]"
,
modulename
,
cmd
,
cmdb
);
j
=
sscanf
(
buf
,
"%9s %9s %
9
[^
\t\n
]"
,
modulename
,
cmd
,
cmdb
);
if
(
telnetparams
.
telnetdbg
>
0
)
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