Skip to content
Snippets Groups Projects

qosmngr: consider more warnings as errors and fix discovered issues

Merged Maxim Menshikov requested to merge mmenshikov-qosmngr-cflags into devel
4 files
+ 23
17
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 4
4
@@ -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));
Loading