Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
qosmngr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HAL
qosmngr
Commits
77e118cc
Commit
77e118cc
authored
2 years ago
by
Maxim Menshikov
Browse files
Options
Downloads
Patches
Plain Diff
qosmngr: fix variable shadowing
parent
7fa6f3c6
Branches
Branches containing commit
No related tags found
1 merge request
!13
qosmngr: consider more warnings as errors and fix discovered issues
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.c
+4
-4
4 additions, 4 deletions
src/main.c
with
4 additions
and
4 deletions
src/main.c
+
4
−
4
View file @
77e118cc
...
...
@@ -57,20 +57,20 @@ static struct ubus_object test_object = {
* @param : none
* return : none
*/
void
qosmngr_version
()
void
qosmngr_version
(
void
)
{
syslog
(
LOG_ERR
,
"version : %s.%s
\n
"
,
qosmngr_base_version
,
qosmngr_xtra_version
);
}
/**
* To expose the qosmngr object on ubus i.e., qos with method queue_stats
* @param ct
x
input parameter pointer to ubus context
* @param c
ontex
t input parameter pointer to ubus context
* retrun integer value 0 on success and -1 on failure
*/
static
int
qosmngr_publish_object
(
struct
ubus_context
*
ct
x
)
static
int
qosmngr_publish_object
(
struct
ubus_context
*
c
ontex
t
)
{
int
ret
;
ret
=
ubus_add_object
(
ct
x
,
&
test_object
);
ret
=
ubus_add_object
(
c
ontex
t
,
&
test_object
);
if
(
ret
)
{
syslog
(
LOG_ERR
,
"Failed to add 'qos' ubus object: %s
\n
"
,
ubus_strerror
(
ret
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment