X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcurl.c;h=f6127a9fb11cfab3f2f4a9d73fadd7390cd078ac;hb=1ebf2f31bd2e080e6f42de640f0a3899a61501c0;hp=16ae3ababc1d48c421c85c814b2eb0499edd699e;hpb=4b8c1289003f0d60728f06a43bfcc9bc3de7004c;p=collectd.git diff --git a/src/curl.c b/src/curl.c index 16ae3aba..f6127a9f 100644 --- a/src/curl.c +++ b/src/curl.c @@ -270,7 +270,7 @@ static int cc_config_add_match (web_page_t *page, /* {{{ */ WARNING ("curl plugin: Ignoring arguments for the `Match' block."); } - match = (web_match_t *) malloc (sizeof (*match)); + match = malloc (sizeof (*match)); if (match == NULL) { ERROR ("curl plugin: malloc failed."); @@ -388,7 +388,7 @@ static int cc_page_init_curl (web_page_t *wp) /* {{{ */ if (wp->pass != NULL) credentials_size += strlen (wp->pass); - wp->credentials = (char *) malloc (credentials_size); + wp->credentials = malloc (credentials_size); if (wp->credentials == NULL) { ERROR ("curl plugin: malloc failed."); @@ -436,7 +436,7 @@ static int cc_config_add_page (oconfig_item_t *ci) /* {{{ */ return (-1); } - page = (web_page_t *) malloc (sizeof (*page)); + page = malloc (sizeof (*page)); if (page == NULL) { ERROR ("curl plugin: malloc failed.");