]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Delete const keyword 3578/head
authorBarbara Kaczorowska <bkjg@google.com>
Tue, 15 Sep 2020 20:54:42 +0000 (22:54 +0200)
committerBarbara Kaczorowska <bkjg@google.com>
Tue, 15 Sep 2020 20:54:42 +0000 (22:54 +0200)
src/write_http.c

index d0a0977f8d770a4305f337300bbcd7ba4af12892..b34093019155d2d955abefd79a796314ed9d0e7b 100644 (file)
@@ -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 */