plugin: remove cast type information from malloc.
authorManuel Luis Sanmartín Rozada <manuel.luis@gmail.com>
Mon, 8 Jun 2015 19:21:44 +0000 (21:21 +0200)
committerManuel Luis Sanmartín Rozada <manuel.luis@gmail.com>
Mon, 8 Jun 2015 19:21:44 +0000 (21:21 +0200)
src/daemon/plugin.c

index 255cccc..299a980 100644 (file)
@@ -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.");