From: Manuel Luis SanmartĂ­n Rozada Date: Mon, 8 Jun 2015 19:21:44 +0000 (+0200) Subject: plugin: remove cast type information from malloc. X-Git-Tag: collectd-5.6.0~696^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b5c37f608e60c14b756f020659572b61eb6c293;p=collectd.git plugin: remove cast type information from malloc. --- diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c index 255cccc0..299a9809 100644 --- a/src/daemon/plugin.c +++ b/src/daemon/plugin.c @@ -1362,7 +1362,7 @@ int plugin_register_flush (const char *name, if (flush_name == NULL) return (-1); - cb = (flush_callback_t *)malloc(sizeof(flush_callback_t)); + cb = malloc(sizeof(flush_callback_t)); if (cb == NULL) { ERROR ("plugin_register_flush: malloc failed.");