From 1ecc7dab3ee3fadc7a24bad31179f0e1367b013d Mon Sep 17 00:00:00 2001 From: Barbara Kaczorowska Date: Tue, 15 Sep 2020 22:54:42 +0200 Subject: [PATCH] Delete const keyword --- src/write_http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/write_http.c b/src/write_http.c index d0a0977f8..b34093019 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -281,7 +281,7 @@ static int wh_flush(cdtime_t timeout, return 0; } - char const *json = strdup(cb->send_buffer.ptr); + char *json = strdup(cb->send_buffer.ptr); strbuf_reset(&cb->send_buffer); cb->send_buffer_init_time = cdtime(); pthread_mutex_unlock(&cb->send_buffer_lock); @@ -291,7 +291,7 @@ static int wh_flush(cdtime_t timeout, } int status = wh_post(cb, json); - free((char *)json); + free(json); return status; } /* int wh_flush */ -- 2.47.2