From 534ebbeacf7905d7df58fd9d2e51563d1840986b Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Wed, 23 Jul 2014 23:12:11 +0200 Subject: [PATCH] zfs_arc: pass reference in llist instead of value This allows the actual values from getting stored, not the pointer addresses. --- src/zfs_arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."); -- 2.11.0