From 77e118ccfbd651d84a46c72bc735212ba9fb6eb2 Mon Sep 17 00:00:00 2001
From: Maxim Menshikov <maxim.menshikov@iopsys.eu>
Date: Tue, 26 Jul 2022 15:46:32 +0300
Subject: [PATCH] qosmngr: fix variable shadowing

---
 src/main.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main.c b/src/main.c
index 118b3e4..be7e7e7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 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
  */
-static int qosmngr_publish_object(struct ubus_context *ctx)
+static int qosmngr_publish_object(struct ubus_context *context)
 {
 	int ret;
-	ret = ubus_add_object(ctx, &test_object);
+	ret = ubus_add_object(context, &test_object);
 	if (ret) {
 		syslog(LOG_ERR, "Failed to add 'qos' ubus object: %s\n",
 			ubus_strerror(ret));
-- 
GitLab