diff --git a/src/rrdtool.c b/src/rrdtool.c
index fd5fb56334346e406b7a1747b5e41ab2459f7722..6b44f67e48e36757cdd34f4dd8334873fb109aac 100644 (file)
--- a/src/rrdtool.c
+++ b/src/rrdtool.c
assert (template == NULL);
new_argc = 2 + argc;
- new_argv = (char **) malloc ((new_argc + 1) * sizeof (char *));
+ new_argv = malloc ((new_argc + 1) * sizeof (*new_argv));
if (new_argv == NULL)
{
ERROR ("rrdtool plugin: malloc failed.");
{
rrd_queue_t *queue_entry;
- queue_entry = (rrd_queue_t *) malloc (sizeof (rrd_queue_t));
+ queue_entry = malloc (sizeof (*queue_entry));
if (queue_entry == NULL)
return (-1);