From 9b5c37f608e60c14b756f020659572b61eb6c293 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Luis=20Sanmart=C3=ADn=20Rozada?= Date: Mon, 8 Jun 2015 21:21:44 +0200 Subject: [PATCH] plugin: remove cast type information from malloc. --- src/daemon/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."); -- 2.11.0