treewide: cleanup malloc calls
[collectd.git] / src / netapp.c
index 020bfba..555abcc 100644 (file)
@@ -464,7 +464,7 @@ static disk_t *get_disk(cfg_disk_t *cd, const char *name) /* {{{ */
                        return d;
        }
 
-       d = malloc(sizeof(*d));
+       d = malloc (sizeof (*d));
        if (d == NULL)
                return (NULL);
        memset (d, 0, sizeof (*d));
@@ -1524,7 +1524,7 @@ static int cna_change_volume_status (const char *hostname, /* {{{ */
 {
        notification_t n;
 
-       memset (&n, 0, sizeof (&n));
+       memset (&n, 0, sizeof (n));
        n.time = cdtime ();
        sstrncpy (n.host, hostname, sizeof (n.host));
        sstrncpy (n.plugin, "netapp", sizeof (n.plugin));
@@ -2827,7 +2827,7 @@ static host_config_t *cna_alloc_host (void) /* {{{ */
 {
        host_config_t *host;
 
-       host = malloc(sizeof(*host));
+       host = malloc (sizeof (*host));
        if (! host)
                return (NULL);
        memset (host, 0, sizeof (*host));