X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fmeta_data.c;h=10678640f94f8de4902b9eecc06567ceccc893d7;hb=1ebf2f31bd2e080e6f42de640f0a3899a61501c0;hp=e1d0ec5b71f17a9a284b1a37745416accece939a;hpb=6894d846ac42cbe88073db074d75279f5a6e31b8;p=collectd.git diff --git a/src/daemon/meta_data.c b/src/daemon/meta_data.c index e1d0ec5b..10678640 100644 --- a/src/daemon/meta_data.c +++ b/src/daemon/meta_data.c @@ -71,7 +71,7 @@ static char *md_strdup (const char *orig) /* {{{ */ return (NULL); sz = strlen (orig) + 1; - dest = (char *) malloc (sz); + dest = malloc (sz); if (dest == NULL) return (NULL); @@ -84,7 +84,7 @@ static meta_entry_t *md_entry_alloc (const char *key) /* {{{ */ { meta_entry_t *e; - e = (meta_entry_t *) malloc (sizeof (*e)); + e = malloc (sizeof (*e)); if (e == NULL) { ERROR ("md_entry_alloc: malloc failed."); @@ -220,7 +220,7 @@ meta_data_t *meta_data_create (void) /* {{{ */ { meta_data_t *md; - md = (meta_data_t *) malloc (sizeof (*md)); + md = malloc (sizeof (*md)); if (md == NULL) { ERROR ("meta_data_create: malloc failed.");