Skip to content
Snippets Groups Projects
Commit 77e118cc authored by Maxim Menshikov's avatar Maxim Menshikov
Browse files

qosmngr: fix variable shadowing

parent 7fa6f3c6
No related branches found
No related tags found
1 merge request!13qosmngr: consider more warnings as errors and fix discovered issues
...@@ -57,20 +57,20 @@ static struct ubus_object test_object = { ...@@ -57,20 +57,20 @@ static struct ubus_object test_object = {
* @param : none * @param : none
* return : none * return : none
*/ */
void qosmngr_version() void qosmngr_version(void)
{ {
syslog(LOG_ERR, "version : %s.%s\n", qosmngr_base_version, qosmngr_xtra_version); 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 * To expose the qosmngr object on ubus i.e., qos with method queue_stats
* @param ctx input parameter pointer to ubus context * @param context input parameter pointer to ubus context
* retrun integer value 0 on success and -1 on failure * retrun integer value 0 on success and -1 on failure
*/ */
static int qosmngr_publish_object(struct ubus_context *ctx) static int qosmngr_publish_object(struct ubus_context *context)
{ {
int ret; int ret;
ret = ubus_add_object(ctx, &test_object); ret = ubus_add_object(context, &test_object);
if (ret) { if (ret) {
syslog(LOG_ERR, "Failed to add 'qos' ubus object: %s\n", syslog(LOG_ERR, "Failed to add 'qos' ubus object: %s\n",
ubus_strerror(ret)); ubus_strerror(ret));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment