From: Marc Fournier Date: Wed, 23 Jul 2014 21:12:11 +0000 (+0200) Subject: zfs_arc: pass reference in llist instead of value X-Git-Tag: collectd-5.5.0~218^2~5 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=534ebbeacf7905d7df58fd9d2e51563d1840986b;p=collectd.git zfs_arc: pass reference in llist instead of value This allows the actual values from getting stored, not the pointer addresses. --- diff --git a/src/zfs_arc.c b/src/zfs_arc.c index ebfc54b4..c3c9cf95 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -220,7 +220,7 @@ static int za_read (void) { llvalues[i] = atoll (fields[2]); - e = llentry_create (fields[0], &llvalues[i]); + e = llentry_create (fields[0], (void *)llvalues[i]); if (e == NULL) { ERROR ("zfs_arc plugin: `llentry_create' failed.");