Code

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 255cccc0e97e215aa72b5496dcdc33b9c91b698d..299a98096aacea948c5dde2f5de0b775e21ceb04 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.");