zfs_arc: pass reference in llist instead of value
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 23 Jul 2014 21:12:11 +0000 (23:12 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 23 Jul 2014 21:12:11 +0000 (23:12 +0200)
This allows the actual values from getting stored, not the pointer
addresses.

src/zfs_arc.c

index ebfc54b..c3c9cf9 100644 (file)
@@ -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.");