fixes compilation warnings (#9845)

This commit is contained in:
Timotej S 2020-08-28 17:45:48 +02:00 committed by GitHub
parent 65583beda3
commit 79969639f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -201,7 +201,7 @@ void aclk_lws_wss_client_destroy()
aclk_lws_wss_destroy_context();
engine_instance->lws_wsi = NULL;
aclk_lws_wss_clear_io_buffers(engine_instance);
aclk_lws_wss_clear_io_buffers();
#ifdef ACLK_LWS_MOSQUITTO_IO_CALLS_MULTITHREADED
pthread_mutex_destroy(&engine_instance->write_buf_mutex);
@ -510,7 +510,7 @@ static int aclk_lws_wss_callback(struct lws *wsi, enum lws_callback_reasons reas
aclk_lws_connection_closed();
return -1; // the callback response is ignored, hope the above remains true
case LWS_CALLBACK_WSI_DESTROY:
aclk_lws_wss_clear_io_buffers(engine_instance);
aclk_lws_wss_clear_io_buffers();
if (!engine_instance->websocket_connection_up)
aclk_lws_wss_fail_report();
engine_instance->lws_wsi = NULL;

View File

@ -187,7 +187,7 @@ void rrdeng_store_metric_flush_current_page(RRDDIM *rd)
return;
}
if (likely(descr->page_length)) {
int ret, page_is_empty;
int page_is_empty;
rrd_stat_atomic_add(&ctx->stats.metric_API_producers, -1);