From: Barbara Kaczorowska Date: Tue, 15 Sep 2020 20:54:42 +0000 (+0200) Subject: Delete const keyword X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3578%2Fhead;p=thirdparty%2Fcollectd.git Delete const keyword --- 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 */