From: Ruben Kerkhof Date: Fri, 1 Apr 2016 16:37:19 +0000 (+0200) Subject: write_http plugin: remove unnecessary cast X-Git-Tag: collectd-5.6.0~371^2~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a11ccccef0da1effb0f6c07a3a3db0f6d46fac0f;p=collectd.git write_http plugin: remove unnecessary cast --- diff --git a/src/write_http.c b/src/write_http.c index 14ce0ec7..c817749f 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -183,7 +183,7 @@ static int wh_callback_init (wh_callback_t *cb) /* {{{ */ if (cb->pass != NULL) credentials_size += strlen (cb->pass); - cb->credentials = (char *) malloc (credentials_size); + cb->credentials = malloc (credentials_size); if (cb->credentials == NULL) { ERROR ("curl plugin: malloc failed.");