X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Ftarget_replace.c;h=2166746c1246e99657739856994edc8286fbd083;hb=952a2f399229aa5e327959ba81d32dc47a4745df;hp=bd8f9e5c51d443650545bc94325fe53df25233e3;hpb=42a7c90f4478e98dc970927cfda7ec2e1081f364;p=collectd.git diff --git a/src/target_replace.c b/src/target_replace.c index bd8f9e5c..2166746c 100644 --- a/src/target_replace.c +++ b/src/target_replace.c @@ -61,7 +61,7 @@ static char *tr_strdup (const char *orig) /* {{{ */ return (NULL); sz = strlen (orig) + 1; - dest = (char *) malloc (sz); + dest = malloc (sz); if (dest == NULL) return (NULL); @@ -102,7 +102,7 @@ static int tr_config_add_action (tr_action_t **dest, /* {{{ */ return (-1); } - act = (tr_action_t *) malloc (sizeof (*act)); + act = malloc (sizeof (*act)); if (act == NULL) { ERROR ("tr_config_add_action: malloc failed."); @@ -244,7 +244,7 @@ static int tr_create (const oconfig_item_t *ci, void **user_data) /* {{{ */ int status; int i; - data = (tr_data_t *) malloc (sizeof (*data)); + data = malloc (sizeof (*data)); if (data == NULL) { ERROR ("tr_create: malloc failed.");