X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmemcachec.c;h=a23d4956e1e978b0910ab1ef05e8a4ed5b930de4;hb=72f3b390dff512e8d891aff6f3fba9ecaeaf970c;hp=013b6c4ed6f83053fa42ace7848218fcaaf5448c;hpb=a09f2fdf0450eb76317e1b7575a12ffb926068f4;p=collectd.git diff --git a/src/memcachec.c b/src/memcachec.c index 013b6c4e..a23d4956 100644 --- a/src/memcachec.c +++ b/src/memcachec.c @@ -206,7 +206,7 @@ static int cmc_config_add_match (web_page_t *page, /* {{{ */ WARNING ("memcachec plugin: Ignoring arguments for the `Match' block."); } - match = (web_match_t *) malloc (sizeof (*match)); + match = malloc (sizeof (*match)); if (match == NULL) { ERROR ("memcachec plugin: malloc failed."); @@ -305,7 +305,7 @@ static int cmc_config_add_page (oconfig_item_t *ci) /* {{{ */ return (-1); } - page = (web_page_t *) malloc (sizeof (*page)); + page = malloc (sizeof (*page)); if (page == NULL) { ERROR ("memcachec plugin: malloc failed.");